OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/db/migrate/20220113144323_create_stora...

12 lines
386 B

class CreateStorage < ActiveRecord::Migration[6.1]
def change
create_table :storages do |t|
t.string :provider_type, null: false
t.string :name, null: false, index: { unique: true }
t.string :host, null: false, index: { unique: true }
t.references :creator, null: false, index: true, foreign_key: { to_table: :users }
t.timestamps
end
end
end