Class: CreateLiveRecordUpdates
- Inherits:
-
Object
- Object
- CreateLiveRecordUpdates
- Defined in:
- lib/live_record/generators/templates/create_live_record_updates.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 |
# File 'lib/live_record/generators/templates/create_live_record_updates.rb', line 2 def change create_table :live_record_updates do |t| t.references :recordable, polymorphic: true t.datetime :created_at, null: false, index: true end end |