1
0
Fork 0

Merge migrations

This commit is contained in:
Alex Kotov 2019-07-22 08:02:15 +05:00
parent a547ca8945
commit 2ec5a853e0
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
4 changed files with 5 additions and 17 deletions

View file

@ -108,9 +108,13 @@ class DeviseCreateUsers < ActiveRecord::Migration[5.2]
create_table :account_roles do |t|
t.timestamps null: false
t.references :account, null: false
t.references :role, null: false
t.datetime :deleted_at
t.datetime :expires_at
t.index %i[account_id role_id], unique: true
end

View file

@ -1,7 +0,0 @@
# frozen_string_literal: true
class AddDeletedAtToAccountRoles < ActiveRecord::Migration[6.0]
def change
add_column :account_roles, :deleted_at, :datetime
end
end

View file

@ -1,7 +0,0 @@
# frozen_string_literal: true
class AddExpiresAtToAccountRoles < ActiveRecord::Migration[6.0]
def change
add_column :account_roles, :expires_at, :datetime
end
end

View file

@ -1140,8 +1140,6 @@ SET search_path TO "$user", public;
INSERT INTO "schema_migrations" (version) VALUES
('20181129203927'),
('20181130024918'),
('20190202041009'),
('20190208062215'),
('20190324204513'),
('20190324210722'),
('20190324211036'),