lib/strong_migrations/checker.rb in strong_migrations-1.5.0 vs lib/strong_migrations/checker.rb in strong_migrations-1.6.0
- old
+ new
@@ -6,10 +6,11 @@
attr_accessor :direction, :transaction_disabled, :timeouts_set
def initialize(migration)
@migration = migration
@new_tables = []
+ @new_columns = []
@safe = false
@timeouts_set = false
@committed = false
end
@@ -44,9 +45,11 @@
check_add_index(*args)
when :add_reference, :add_belongs_to
check_add_reference(method, *args)
when :change_column
check_change_column(*args)
+ when :change_column_default
+ check_change_column_default(*args)
when :change_column_null
check_change_column_null(*args)
when :change_table
check_change_table
when :create_join_table