test/rails/overrides/db/migrate/20100824062306_create_users.rb in jpmobile-4.1.5 vs test/rails/overrides/db/migrate/20100824062306_create_users.rb in jpmobile-4.2.0
- old
+ new
@@ -1,13 +1,9 @@
class CreateUsers < ActiveRecord::Migration
- def self.up
+ def change
create_table :users do |t|
t.string :name
- t.timestamps
+ t.timestamps null: false
end
- end
-
- def self.down
- drop_table :users
end
end