Sha256: 44548ca99c387173c27bc6973b1d64e617bc4b5875216551d2d3c7942c3291e1

Contents?: true

Size: 329 Bytes

Versions: 12

Compression:

Stored size: 329 Bytes

Contents

class CreateAuthors < ActiveRecord::Migration[5.0]
  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
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
releaf-core-3.1.0 lib/generators/dummy/templates/migrations/create_authors.rb
releaf-core-3.0.3 lib/generators/dummy/templates/migrations/create_authors.rb
releaf-core-3.0.2 lib/generators/dummy/templates/migrations/create_authors.rb
releaf-core-3.0.1 lib/generators/dummy/templates/migrations/create_authors.rb
releaf-core-3.0.0 lib/generators/dummy/templates/migrations/create_authors.rb
releaf-core-2.2.1 lib/generators/dummy/templates/migrations/create_authors.rb
releaf-core-2.2.0 lib/generators/dummy/templates/migrations/create_authors.rb
releaf-core-2.1.2 lib/generators/dummy/templates/migrations/create_authors.rb
releaf-core-2.1.1 lib/generators/dummy/templates/migrations/create_authors.rb
releaf-core-2.1.0 lib/generators/dummy/templates/migrations/create_authors.rb
releaf-core-2.0.1 lib/generators/dummy/templates/migrations/create_authors.rb
releaf-core-2.0.0 lib/generators/dummy/templates/migrations/create_authors.rb