Sha256: 179a7a63a787e97820241869b904563f727ee41c7854059dd84e9ebdba4f142f
Contents?: true
Size: 382 Bytes
Versions: 32
Compression:
Stored size: 382 Bytes
Contents
module Blog::Models class CreatePost < V 1.0 def self.up create_table :blog_posts do |t| t.column :id , :integer , :null => false t.column :user_id , :integer , :null => false t.column :title , :string , :limit => 255 t.column :body , :text end end def self.down drop_table :blog_posts end end end
Version data entries
32 entries across 21 versions & 1 rubygems