diff options
Diffstat (limited to 'db/migrate/20170625004938_create_entries.rb')
-rw-r--r-- | db/migrate/20170625004938_create_entries.rb | 12 |
1 files changed, 12 insertions, 0 deletions
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 | ||