Class: CreateUnavailableDates
- Inherits:
-
Object
- Object
- CreateUnavailableDates
- Defined in:
- lib/unavailability/unavailable_dates/migration.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/unavailability/unavailable_dates/migration.rb', line 2 def change create_table :unavailable_dates do |t| t.date :from t.date :to t.references :dateable, polymorphic: true t. end end |