class CreatePosts
Public Class Methods
down()
click to toggle source
# File lib/generators/squeezer/templates/db/migrate/create_posts.rb, line 13 def self.down drop_table :posts end
up()
click to toggle source
# File lib/generators/squeezer/templates/db/migrate/create_posts.rb, line 2 def self.up create_table :posts do |t| t.integer :comment_id t.text :body t.string :name t.integer :user_id t.timestamps end end