now reverting migration will raise AR error
This commit is contained in:
parent
e3fa414a5c
commit
3d91029afc
2 changed files with 23 additions and 19 deletions
|
|
@ -1,5 +1,9 @@
|
|||
class ChangePostalcodeFormatInVenues < ActiveRecord::Migration
|
||||
def change
|
||||
def up
|
||||
change_column :venues, :postalcode, :string
|
||||
end
|
||||
|
||||
def down
|
||||
raise ActiveRecord::IrreversibleMigration.new('Cannot reverse migration.')
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue