Sha256: 799d28aa78bdb5592efac8234387b8f81b1083eefde3392628bad068f72f2763

Contents?: true

Size: 308 Bytes

Versions: 19

Compression:

Stored size: 308 Bytes

Contents

klass = if Rails::VERSION::MAJOR < 5
  ActiveRecord::Migration
else
  ActiveRecord::Migration[4.2]
end

class CreateUsers < klass
  def change
    create_table :users do |t|
      t.string :name
      t.integer :age
      t.decimal :salary
      t.text :bio

      t.timestamps null: false
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
rails_db-2.4.4 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.4.3 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.4.2 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.4.1 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.4.0 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.3.1 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.3.0 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.2.1 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.2.0 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.1.1 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.1.0 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.0.6 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.0.5 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.0.4 test/dummy/db/migrate/20151013203739_create_users.rb
xplore-0.0.1.alpha test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.0.3 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.0.2 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.0.1 test/dummy/db/migrate/20151013203739_create_users.rb
rails_db-2.0.0 test/dummy/db/migrate/20151013203739_create_users.rb