diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-06-25 00:00:28 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-06-25 00:00:28 -0400 |
commit | ad80c40944743515a45d70014e8d5ffb88cd74fc (patch) | |
tree | 0e97b3d46f3ed3594a1e4074e4a5a06deefcd76d /db/migrate | |
parent | 5581530930129d7854ed5d99d058939ad9c790c2 (diff) | |
download | thoughts-ad80c40944743515a45d70014e8d5ffb88cd74fc.tar.gz thoughts-ad80c40944743515a45d70014e8d5ffb88cd74fc.tar.bz2 thoughts-ad80c40944743515a45d70014e8d5ffb88cd74fc.zip |
Started designing index page
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170624183854_create_records.rb | 10 | ||||
-rw-r--r-- | db/migrate/20170625004938_create_entries.rb | 12 |
2 files changed, 22 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 | ||
diff --git a/db/migrate/20170625004938_create_entries.rb b/db/migrate/20170625004938_create_entries.rb new file mode 100644 index 0000000..0fb85b2 --- /dev/null +++ b/db/migrate/20170625004938_create_entries.rb | |||
@@ -0,0 +1,12 @@ | |||
1 | class CreateEntries < ActiveRecord::Migration[5.1] | ||
2 | def change | ||
3 | create_table :entries do |t| | ||
4 | t.string :title | ||
5 | t.text :body | ||
6 | t.string :slug, null: false | ||
7 | t.string :type, null: false | ||
8 | |||
9 | t.timestamps | ||
10 | end | ||
11 | end | ||
12 | end | ||