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