diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-07-07 20:03:13 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-07-07 20:35:32 +0300 |
commit | 4e07305b27101b164d983d51fad60cf715f31501 (patch) | |
tree | 8d3ae9750c477911b8d8f96f48a464e050c1e22a /db | |
parent | 9c14954a81778a603a38024ce1f3f4953457d13f (diff) |
fix migrations in the future
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20170707183807_add_group_id_to_milestones.rb (renamed from db/migrate/20170723183807_add_group_id_to_milestones.rb) | 0 | ||||
-rw-r--r-- | db/migrate/20170707184243_add_group_milestone_id_indexes.rb (renamed from db/migrate/20170724184243_add_group_milestone_id_indexes.rb) | 0 | ||||
-rw-r--r-- | db/migrate/20170707184244_remove_wrong_versions_from_schema_versions.rb | 6 | ||||
-rw-r--r-- | db/schema.rb | 2 |
4 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20170723183807_add_group_id_to_milestones.rb b/db/migrate/20170707183807_add_group_id_to_milestones.rb index e46fc4f80f0..e46fc4f80f0 100644 --- a/db/migrate/20170723183807_add_group_id_to_milestones.rb +++ b/db/migrate/20170707183807_add_group_id_to_milestones.rb diff --git a/db/migrate/20170724184243_add_group_milestone_id_indexes.rb b/db/migrate/20170707184243_add_group_milestone_id_indexes.rb index d48b1884179..d48b1884179 100644 --- a/db/migrate/20170724184243_add_group_milestone_id_indexes.rb +++ b/db/migrate/20170707184243_add_group_milestone_id_indexes.rb diff --git a/db/migrate/20170707184244_remove_wrong_versions_from_schema_versions.rb b/db/migrate/20170707184244_remove_wrong_versions_from_schema_versions.rb new file mode 100644 index 00000000000..f82a5dffa9e --- /dev/null +++ b/db/migrate/20170707184244_remove_wrong_versions_from_schema_versions.rb @@ -0,0 +1,6 @@ +class RemoveWrongVersionsFromSchemaVersions < ActiveRecord::Migration + def change + execute "UPDATE schema_migrations SET version = '20170707183807' WHERE version = '20170723183807'" + execute "UPDATE schema_migrations SET version = '20170707184243' WHERE version = '20170724184243'" + end +end diff --git a/db/schema.rb b/db/schema.rb index 386f3041135..c116d318ea3 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20170724184243) do +ActiveRecord::Schema.define(version: 20170707184244) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" |