about summary refs log tree commit diff stats
path: root/db/migrate/20170624183854_create_records.rb
blob: d407e1517a9d6078ad1abe7a94124700d2c8fed5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
class CreateRecords < ActiveRecord::Migration[5.1]
  def change
    create_table :records do |t|
      t.text :description
      t.references :recordable, polymorphic: true, index: true

      t.timestamps
    end
  end
end