rosa-build/db/migrate/20120331180541_customize_pl...

20 lines
740 B
Ruby
Raw Permalink Normal View History

class CustomizePlatform < ActiveRecord::Migration
def self.up
change_column_null :platforms, :name, false
2012-04-12 11:29:04 +01:00
#change_column_null :platforms, :distrib_type, false
change_column_null :platforms, :platform_type, false
change_column_null :platforms, :released, false
change_column_null :platforms, :visibility, false
2014-01-21 04:51:49 +00:00
add_index "platforms", ["name"], unique: true, case_sensitive: false
end
def self.down
change_column_null :platforms, :name, true
change_column_null :platforms, :distrib_type, true
change_column_null :platforms, :platform_type, true
change_column_null :platforms, :released, true
change_column_null :platforms, :visibility, true
remove_index "platforms", ["name"]
2014-01-21 04:51:49 +00:00
end
end