class GotitMigration
Public Instance Methods
change()
click to toggle source
# 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