class CreateAuthors
Public Instance Methods
change()
click to toggle source
# File lib/generators/dummy/templates/migrations/create_authors.rb, line 2 def change create_table :authors do |t| t.string :name, :null => false t.string :surname t.text :bio t.date :birth_date t.string :wiki_link t.integer :publisher_id t.timestamps(null: false) end end