metamaps--metamaps/db/migrate/20161013162214_create_access_requests.rb

13 lines
321 B
Ruby
Raw Permalink Normal View History

class CreateAccessRequests < ActiveRecord::Migration[5.0]
def change
create_table :access_requests do |t|
t.references :user, foreign_key: true
t.boolean :approved, default: false
t.boolean :answered, default: false
t.references :map, foreign_key: true
t.timestamps
end
end
end