search for: noteshare_id

Displaying 2 results from an estimated 2 matches for "noteshare_id".

2006 Feb 11
2
Migrations and Unintialized Constants Error
...ng into a problem with two of my tables and the "uninitialized constant" error when using migration. I get the "uninitialized constant Note" when running the following code in my migration file: create_table :notes do |t| t.column :id, :integer t.column :noteshare_id, :integer t.column :title, :string t.column :covered, :string t.column :content, :text t.column :created_at, :datetime t.column :updated_at, :datetime end Note.create_versioned_table The same thing happens with: create_table :faculties do |t|...
2006 Feb 14
10
acts_as_versioned and getting authors
...y guys and gals, I have the following object that has acts_as_versioned: class Note < ActiveRecord::Base acts_as_versioned belongs_to :user end The schema for my notes table is as follows: create_table :notes, :force => true do |t| t.column :id, :integer t.column :noteshare_id, :integer t.column :user_id, :integer t.column :title, :string t.column :content, :text t.column :created_at, :datetime t.column :updated_at, :datetime t.column :version, :integer end Note.create_versioned_table Now I want to be able to do: &l...