Displaying 1 result from an estimated 1 matches for "fk_article_topics".
2006 Aug 17
0
super-newb needs help with has_many and other things...
...ing
t.column :body, :text, :null => false
t.column :creator, :string, :null => false
t.column :creationdate, :timestamp, :null => false
t.column :topicid, :integer, :null => false
end
execute "alter table articles
add constraint fk_article_topics
foreign key(topicid) references topics(id)"
end
def self.down
drop_table :articles
end
end
003:
class CreateComments < ActiveRecord::Migration
def self.up
create_table :comments do |t|
t.column :comment, :text, :null => false
t.column :cre...