Displaying 1 result from an estimated 1 matches for "createarticles".
2006 Aug 17
0
super-newb needs help with has_many and other things...
...topics do |t|
t.column :name, :string, :null => false
t.column :description, :string
t.column :creator, :string, :null => false
t.column :creationdate, :timestamp, :null => false
end
end
def self.down
drop_table :topics
end
end
002:
class CreateArticles < ActiveRecord::Migration
def self.up
create_table :articles do |t|
t.column :name, :string, :null => false
t.column :description, :string
t.column :body, :text, :null => false
t.column :creator, :string, :null => false
t.column :creationdate, :t...