Class: CreateTaskHosts
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreateTaskHosts
- Defined in:
- db/migrate/20130522032517_create_task_hosts.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 |
# File 'db/migrate/20130522032517_create_task_hosts.rb', line 2 def change create_table :task_hosts do |t| t.references :task, :null => false t.references :host, :null => false t. end end |