c33b489853
This is to ensure that migrations will still be consitent when we will upgrade to Rails 5 which default to `null: false` for timestamps columns. Fixes #23666. Signed-off-by: Rémy Coutable <remy@rymai.me>
16 lines
417 B
Ruby
16 lines
417 B
Ruby
class CreateProjectFeatures < ActiveRecord::Migration
|
|
DOWNTIME = false
|
|
|
|
def change
|
|
create_table :project_features do |t|
|
|
t.belongs_to :project, index: true
|
|
t.integer :merge_requests_access_level
|
|
t.integer :issues_access_level
|
|
t.integer :wiki_access_level
|
|
t.integer :snippets_access_level
|
|
t.integer :builds_access_level
|
|
|
|
t.timestamps null: true
|
|
end
|
|
end
|
|
end
|