ref: master
db/migrate/20100809044356_dont_accept_null_to_name_of_qualifiers_and_certifiers.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
class DontAcceptNullToNameOfQualifiersAndCertifiers < ActiveRecord::Migration def self.up change_table :certifiers do |t| t.change :name, :string, :null => false end change_table :qualifiers do |t| t.change :name, :string, :null => false end end def self.down change_table :certifiers do |t| t.change :name, :string, :null => true end change_table :qualifiers do |t| t.change :name, :string, :null => true end end end |