diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-08-12 07:10:16 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-08-12 07:10:16 -0400 |
commit | c650bee03937bd0e741e701f1fe0bfe5cf8e040e (patch) | |
tree | c0020572ceef21498da9b52851242b22dba7aafe /db/migrate | |
parent | 77e849b66719f5e86762eff4ae23340dab1b32fa (diff) | |
download | thoughts-c650bee03937bd0e741e701f1fe0bfe5cf8e040e.tar.gz thoughts-c650bee03937bd0e741e701f1fe0bfe5cf8e040e.tar.bz2 thoughts-c650bee03937bd0e741e701f1fe0bfe5cf8e040e.zip |
Add link entry type
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20180811215146_create_links.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20180811215146_create_links.rb b/db/migrate/20180811215146_create_links.rb new file mode 100644 index 0000000..0e0ca29 --- /dev/null +++ b/db/migrate/20180811215146_create_links.rb | |||
@@ -0,0 +1,10 @@ | |||
1 | class CreateLinks < ActiveRecord::Migration[5.1] | ||
2 | def change | ||
3 | create_table :links do |t| | ||
4 | t.string :title, null: false | ||
5 | t.string :url, null: false | ||
6 | |||
7 | t.timestamps | ||
8 | end | ||
9 | end | ||
10 | end | ||