2015-02-09 16:06:24 +00:00
|
|
|
class ProductsNamePresenceTrue < ActiveRecord::Migration
|
2015-02-10 07:33:51 +00:00
|
|
|
def up
|
2015-02-09 16:06:24 +00:00
|
|
|
change_column :products, :name, :string, null: false
|
|
|
|
end
|
2015-02-10 07:33:51 +00:00
|
|
|
|
|
|
|
def down
|
|
|
|
change_column :products, :name, :string, null: true
|
|
|
|
end
|
2015-02-09 16:06:24 +00:00
|
|
|
end
|