Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 250 Bytes
class CreateSecretViewRightsTable < Sequel::Migration
def up
create_table :secret_view_rights do
foreign_key :secret_id, :secrets
foreign_key :viewer_id, :users
end
end
def down
drop_table :secret_view_rights
end
end