Class: CreateTodoroTaskLists
- Inherits:
-
Object
- Object
- CreateTodoroTaskLists
- Defined in:
- lib/generators/todoro/templates/create_todoro_task_lists.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/generators/todoro/templates/create_todoro_task_lists.rb', line 2 def change create_table :todoro_task_lists do |t| t.string :name, null: false t.references :taskable, polymorphic: true, null: false t. end end |