Avoid more models in old migrations
Although these migrations run fine today, they could break in the future if changes are made to the current model code.
This commit is contained in:
parent
6ebb21b660
commit
d130db9fa8
14 changed files with 56 additions and 0 deletions
|
@ -1,4 +1,7 @@
|
|||
class AddTermsSeenToUser < ActiveRecord::Migration[4.2]
|
||||
class User < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def self.up
|
||||
add_column :users, :terms_seen, :boolean, :null => false, :default => false
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue