Class: GotitMigration
- Inherits:
-
Object
- Object
- GotitMigration
- Defined in:
- lib/generators/gotit/templates/migration.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/generators/gotit/templates/migration.rb', line 2 def change create_table Mark, force: true do |t| t.references :readable, polymorphic: { null: false } t.references :reader, polymorphic: { null: false } t.datetime :timestamp end end |