Displaying 1 result from an estimated 1 matches for "fk_posts".
Did you mean:
_posts
2008 Mar 29
0
message board help
...def self.up
create_table :posts do |table|
table.column :body, :text
table.column :created_at, :datetime, :null => false
table.column :name, :string, :limit=>100
table.column :discussion_id, :integer, :null => false
end
execute "ALTER TABLE posts ADD CONSTRAINT fk_posts
FOREIGN KEY(discussion_id) REFERENCES discussions(id)"
end
def self.down
drop_table :posts
end
end
can anyone help me?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Go...