1
0
Fork 0

Merge migrations

This commit is contained in:
Alex Kotov 2019-07-22 08:59:29 +05:00
parent 8dce61921b
commit b07b7ba909
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
4 changed files with 3 additions and 22 deletions

View file

@ -35,6 +35,9 @@ class DeviseCreateUsers < ActiveRecord::Migration[5.2]
t.string :english_name, null: false, index: { unique: true }
t.string :native_name, null: false, index: { unique: true }
t.integer :number, null: false, index: { unique: true }
t.interval :timezone, null: false, index: false
end
create_table :regional_offices do |t|

View file

@ -1,10 +0,0 @@
# frozen_string_literal: true
class AddNumberToFederalSubjects < ActiveRecord::Migration[6.0]
def change
# rubocop:disable Rails/NotNullColumn
add_column :federal_subjects, :number, :integer, null: false
add_index :federal_subjects, :number, unique: true
# rubocop:enable Rails/NotNullColumn
end
end

View file

@ -1,9 +0,0 @@
# frozen_string_literal: true
class AddTimezoneToFederalSubjects < ActiveRecord::Migration[6.0]
def change
# rubocop:disable Rails/NotNullColumn
add_column :federal_subjects, :timezone, :interval, null: false
# rubocop:enable Rails/NotNullColumn
end
end

View file

@ -1140,9 +1140,6 @@ SET search_path TO "$user", public;
INSERT INTO "schema_migrations" (version) VALUES
('20181129203927'),
('20181130024918'),
('20190427141639'),
('20190719224405'),
('20190720022446'),
('20190720042127'),
('20190720124758');