Class: CreatePublishers

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/dummy/templates/migrations/create_publishers.rb

Instance Method Summary collapse

Instance Method Details

#changeObject


2
3
4
5
6
7
# File 'lib/generators/dummy/templates/migrations/create_publishers.rb', line 2

def change
  create_table :publishers do |t|
    t.string  :title,        :null => false
    t.timestamps(null: false)
  end
end