Merge migrations
This commit is contained in:
parent
a547ca8945
commit
2ec5a853e0
4 changed files with 5 additions and 17 deletions
|
@ -108,8 +108,12 @@ 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.references :role, null: false
|
||||
|
||||
t.datetime :deleted_at
|
||||
t.datetime :expires_at
|
||||
|
||||
t.index %i[account_id role_id], unique: true
|
||||
end
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -1140,8 +1140,6 @@ SET search_path TO "$user", public;
|
|||
INSERT INTO "schema_migrations" (version) VALUES
|
||||
('20181129203927'),
|
||||
('20181130024918'),
|
||||
('20190202041009'),
|
||||
('20190208062215'),
|
||||
('20190324204513'),
|
||||
('20190324210722'),
|
||||
('20190324211036'),
|
||||
|
|
Reference in a new issue