class CreatePosts < ActiveRecord::Migration[4.2]
def self.up
create_table :posts do |t|
t.string :name
t.timestamps
end
def self.down
drop_table :posts