|
|
|
@ -4,8 +4,8 @@ class TagsMigration < Sequel::Migration
|
|
|
|
|
create_table :tags do
|
|
|
|
|
primary_key :id
|
|
|
|
|
String :name, :null => false
|
|
|
|
|
Fixnum :user_id, :null => false, :index => true
|
|
|
|
|
Fixnum :table_id, :null => false, :index => true
|
|
|
|
|
Integer :user_id, :null => false, :index => true
|
|
|
|
|
Integer :table_id, :null => false, :index => true
|
|
|
|
|
index [:user_id, :table_id, :name], :unique => true
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|