From ad80c40944743515a45d70014e8d5ffb88cd74fc Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 25 Jun 2017 00:00:28 -0400 Subject: Started designing index page --- db/migrate/20170624183854_create_records.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 db/migrate/20170624183854_create_records.rb (limited to 'db/migrate/20170624183854_create_records.rb') 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 @@ +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 -- cgit 1.4.1