Class: CreateChanges
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateChanges
- Defined in:
- lib/generators/audits_install/templates/create_changes.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/generators/audits_install/templates/create_changes.rb', line 2 def change create_table :changes do |t| t.string :model_class_name t.integer :model_id t.string :property_name t.string :parent_model_class_name t.integer :parent_model_id t.string :original_value t.string :new_value t.integer :created_by_id t. null: false end end |