diff options
Diffstat (limited to 'db/migrate/20170624183854_create_records.rb')
| -rw-r--r-- | db/migrate/20170624183854_create_records.rb | 10 |
1 files changed, 10 insertions, 0 deletions
| diff --git a/db/migrate/20170624183854_create_records.rb b/db/migrate/20170624183854_create_records.rb new file mode 100644 index 0000000..d407e15 --- /dev/null +++ b/db/migrate/20170624183854_create_records.rb | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | class CreateRecords < ActiveRecord::Migration[5.1] | ||
| 2 | def change | ||
| 3 | create_table :records do |t| | ||
| 4 | t.text :description | ||
| 5 | t.references :recordable, polymorphic: true, index: true | ||
| 6 | |||
| 7 | t.timestamps | ||
| 8 | end | ||
| 9 | end | ||
| 10 | end | ||
