Adding hashtag model

This commit is contained in:
Eugen Rochko 2016-11-04 19:12:59 +01:00
parent 6471a548fe
commit 62292797ec
11 changed files with 60 additions and 9 deletions

View file

@ -0,0 +1,11 @@
class CreateTags < ActiveRecord::Migration[5.0]
def change
create_table :tags do |t|
t.string :name, null: false, default: ''
t.timestamps
end
add_index :tags, :name, unique: true
end
end