blob: 7713a7a3625629c140936568a0686996dac06155 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class CreateQueriesRoles < ActiveRecord::Migration
def self.up
create_table :queries_roles, :id => false do |t|
t.column :query_id, :integer, :null => false
t.column :role_id, :integer, :null => false
end
add_index :queries_roles, [:query_id, :role_id], :unique => true, :name => :queries_roles_ids
end
def self.down
drop_table :queries_roles
end
end
|