Upstream sync master
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class AssignAccountNumberAndTypeToZoomUsers < ActiveRecord::DataMigration
|
||||
def up
|
||||
ZoomUser.find_each do |zu|
|
||||
zu.update account_number: ENV.fetch('ZOOM_ACCOUNT_NUMBER'), tier: (ENV['ZOOM_USER_TYPE'] == 'pro' ? 1 : 0)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
class AddAccountNumberAndTypeToZoomUsers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :zoom_users, :account_number, :string
|
||||
add_column :zoom_users, :tier, :integer, default: 0
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddFilmingHoursToLocationReleases < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :location_releases, :filming_hours, :text
|
||||
end
|
||||
end
|
||||
@@ -1592,7 +1592,9 @@ CREATE TABLE public.zoom_users (
|
||||
id bigint NOT NULL,
|
||||
api_id character varying,
|
||||
created_at timestamp(6) without time zone NOT NULL,
|
||||
updated_at timestamp(6) without time zone NOT NULL
|
||||
updated_at timestamp(6) without time zone NOT NULL,
|
||||
account_number character varying,
|
||||
tier integer DEFAULT 0
|
||||
);
|
||||
|
||||
|
||||
@@ -3499,6 +3501,7 @@ INSERT INTO "schema_migrations" (version) VALUES
|
||||
('20200427073429'),
|
||||
('20200428091105'),
|
||||
('20200507110804'),
|
||||
('20200512161738');
|
||||
('20200512161738'),
|
||||
('20200526113516');
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user