about summary refs log tree commit diff stats
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20180811215146_create_links.rb10
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 @@
1class 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
10end