Sha256: 7b8a87be9046de97a582677c9ff2e0661bdfcba7e76c49fd427b65f73397235c

Contents?: true

Size: 249 Bytes

Versions: 8

Compression:

Stored size: 249 Bytes

Contents

# frozen_string_literal: true

class CreateAuthors < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0] : ActiveRecord::Migration
  def change
    create_table :authors do |t|
      t.string :name

      t.timestamps
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
erd-0.8.0 test/fake_app/db/migrate/20120428022519_create_authors.rb
erd-0.7.0 test/fake_app/db/migrate/20120428022519_create_authors.rb
erd-0.6.4 test/fake_app/db/migrate/20120428022519_create_authors.rb
erd-0.6.3 test/fake_app/db/migrate/20120428022519_create_authors.rb
erd-0.6.2 test/fake_app/db/migrate/20120428022519_create_authors.rb
erd-0.6.1 test/fake_app/db/migrate/20120428022519_create_authors.rb
erd-0.6.0 test/fake_app/db/migrate/20120428022519_create_authors.rb
erd-0.5.0 test/fake_app/db/migrate/20120428022519_create_authors.rb