README.md in strong_migrations-0.1.6 vs README.md in strong_migrations-0.1.7
- old
+ new
@@ -91,10 +91,16 @@
### Removing a column
Tell ActiveRecord to ignore the column from its cache.
```ruby
-class User
+# For Rails 5+
+class User < ActiveRecord::Base
+ self.ignored_columns = %w(some_column)
+end
+
+# For Rails < 5
+class User < ActiveRecord::Base
def self.columns
super.reject { |c| c.name == "some_column" }
end
end
```