Commit b4c077bf authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Squash EE migrations prior to 2014-03-19

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 25c919dd
class AddLdapSettingsToGroup < ActiveRecord::Migration
def change
add_column :namespaces, :ldap_cn, :string, null: true
end
end
class AddLdapAccessToGroup < ActiveRecord::Migration
def change
add_column :namespaces, :ldap_access, :integer, null: true
end
end
# rubocop:disable Migration/Timestamps # rubocop:disable Migration/Timestamps
class CreateGitHooks < ActiveRecord::Migration class InitEESchema < ActiveRecord::Migration
DOWNTIME = false DOWNTIME = false
def change def up
add_column :namespaces, :ldap_cn, :string, null: true
add_column :namespaces, :ldap_access, :integer, null: true
create_table :git_hooks do |t| create_table :git_hooks do |t|
t.string :force_push_regex t.string :force_push_regex
t.string :delete_branch_regex t.string :delete_branch_regex
...@@ -13,4 +16,8 @@ class CreateGitHooks < ActiveRecord::Migration ...@@ -13,4 +16,8 @@ class CreateGitHooks < ActiveRecord::Migration
t.timestamps null: true t.timestamps null: true
end end
end end
def down
raise ActiveRecord::IrreversibleMigration, "The initial migration is not revertable"
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment