-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update decidim fix comparison branch (#13)
* update decidim fix comparison branch * rubocop
- Loading branch information
1 parent
91b7ffb
commit 07243cd
Showing
21 changed files
with
427 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
db/migrate/20210528030401_add_conferences.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20180626151505) | ||
|
||
class AddConferences < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :decidim_conferences do |t| | ||
t.jsonb :title, null: false | ||
t.jsonb :slogan, null: false | ||
t.string :slug, null: false | ||
t.string :hashtag | ||
t.string :reference | ||
t.string :location | ||
t.integer :decidim_organization_id, | ||
foreign_key: true, | ||
index: { name: "index_decidim_conferences_on_decidim_organization_id" } | ||
|
||
t.jsonb :short_description, null: false | ||
t.jsonb :description, null: false | ||
t.string :hero_image | ||
t.string :banner_image | ||
t.boolean :promoted, default: false | ||
t.datetime :published_at | ||
t.jsonb :objectives, null: false | ||
t.boolean :show_statistics, default: false | ||
t.date :start_date | ||
t.date :end_date | ||
t.boolean :scopes_enabled, null: false, default: true | ||
t.integer :decidim_scope_id | ||
|
||
t.boolean :registrations_enabled, null: false, default: false | ||
t.integer :available_slots, null: false, default: 0 | ||
t.jsonb :registration_terms | ||
|
||
t.index [:decidim_organization_id, :slug], | ||
name: "index_unique_conference_slug_and_organization", | ||
unique: true | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
18 changes: 18 additions & 0 deletions
18
db/migrate/20210528030402_add_conference_user_roles.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20180626152015) | ||
|
||
class AddConferenceUserRoles < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :decidim_conference_user_roles do |t| | ||
t.integer :decidim_user_id | ||
t.integer :decidim_conference_id | ||
t.string :role | ||
t.timestamps | ||
end | ||
|
||
add_index :decidim_conference_user_roles, | ||
[:decidim_conference_id, :decidim_user_id, :role], | ||
unique: true, | ||
name: "index_unique_user_and_conference_role" | ||
end | ||
end |
20 changes: 20 additions & 0 deletions
20
db/migrate/20210528030403_add_conference_speakers.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20180702084256) | ||
|
||
class AddConferenceSpeakers < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :decidim_conference_speakers do |t| | ||
t.references :decidim_conference, index: true | ||
t.string :full_name | ||
t.jsonb :position | ||
t.jsonb :affiliation | ||
t.string :twitter_handle | ||
t.jsonb :short_bio | ||
t.string :personal_url | ||
t.string :avatar | ||
t.references :decidim_user, index: { name: "index_decidim_conference_speaker_on_decidim_user_id" } | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
17 changes: 17 additions & 0 deletions
17
db/migrate/20210528030404_add_conference_invites.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20180706104306) | ||
|
||
class AddConferenceInvites < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :decidim_conferences_conference_invites do |t| | ||
t.references :decidim_user, null: false, index: true | ||
t.references :decidim_conference, null: false, | ||
index: { name: "idx_decidim_conferences_invites_on_conference_id" } | ||
t.datetime :sent_at | ||
t.datetime :accepted_at | ||
t.datetime :rejected_at | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
18 changes: 18 additions & 0 deletions
18
db/migrate/20210528030405_add_conference_registrations.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20180706104825) | ||
|
||
class AddConferenceRegistrations < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :decidim_conferences_conference_registrations do |t| | ||
t.references :decidim_user, null: false, index: { name: "index_decidim_conferences_registrations_on_decidim_user_id" } | ||
t.references :decidim_conference, null: false, index: { name: "index_conferences_registrations_on_decidim_conference" } | ||
|
||
t.timestamps | ||
end | ||
|
||
add_index :decidim_conferences_conference_registrations, | ||
[:decidim_user_id, :decidim_conference_id], | ||
unique: true, | ||
name: "decidim_conferences_registrations_user_conference_unique" | ||
end | ||
end |
19 changes: 19 additions & 0 deletions
19
db/migrate/20210528030406_add_conferences_partner.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20181004144411) | ||
|
||
class AddConferencesPartner < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :decidim_conferences_partners do |t| | ||
t.references :decidim_conference, index: true | ||
t.string :name, null: false | ||
t.string :partner_type, null: false | ||
t.integer :weight, null: false, default: 0 | ||
t.string :link | ||
t.string :logo, null: false | ||
|
||
t.timestamps | ||
end | ||
|
||
add_index :decidim_conferences_partners, [:weight, :partner_type] | ||
end | ||
end |
11 changes: 11 additions & 0 deletions
11
db/migrate/20210528030407_add_relation_between_speaker_and_meeting.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20181010133930) | ||
|
||
class AddRelationBetweenSpeakerAndMeeting < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :decidim_conference_speaker_conference_meetings do |t| | ||
t.belongs_to :conference_speaker, null: false, index: { name: "index_meetings_on_decidim_conference_speaker_id" } | ||
t.belongs_to :conference_meeting, null: false, index: { name: "index_meetings_on_decidim_conference_meeting_id" } | ||
end | ||
end | ||
end |
16 changes: 16 additions & 0 deletions
16
db/migrate/20210528030408_add_conference_media_link.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20181015100301) | ||
|
||
class AddConferenceMediaLink < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :decidim_conferences_media_links do |t| | ||
t.references :decidim_conference, index: true | ||
t.jsonb :title, null: false | ||
t.string :link, null: false | ||
t.date :date | ||
t.integer :weight, null: false, default: 0 | ||
|
||
t.timestamps | ||
end | ||
end | ||
end |
22 changes: 22 additions & 0 deletions
22
db/migrate/20210528030409_add_conference_registration_types.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20181023142325) | ||
|
||
class AddConferenceRegistrationTypes < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :decidim_conferences_registration_types do |t| | ||
t.references :decidim_conference, index: { name: "idx_registration_types_on_decidim_conference_id" } | ||
t.jsonb :title, null: false | ||
t.jsonb :description, null: false | ||
t.decimal :price, null: false, default: 0, precision: 8, scale: 2 | ||
t.integer :weight, null: false, default: 0 | ||
t.datetime :published_at, index: true | ||
|
||
t.timestamps | ||
end | ||
|
||
create_table :decidim_conferences_conference_meeting_registration_types do |t| | ||
t.belongs_to :registration_type, null: false, index: { name: "index_meetings_on_decidim_registration_type_id" } | ||
t.belongs_to :conference_meeting, null: false, index: { name: "index_registrations_on_decidim_conference_meeting_id" } | ||
end | ||
end | ||
end |
10 changes: 10 additions & 0 deletions
10
...8030410_add_reference_registration_type_to_conference_registration.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20181030090202) | ||
|
||
class AddReferenceRegistrationTypeToConferenceRegistration < ActiveRecord::Migration[5.2] | ||
def change | ||
add_column :decidim_conferences_conference_registrations, :decidim_conference_registration_type_id, | ||
:integer, index: { name: "idx_conference_registration_to_registration_type_id" } | ||
add_column :decidim_conferences_conference_registrations, :confirmed_at, :datetime, index: true | ||
end | ||
end |
9 changes: 9 additions & 0 deletions
9
db/migrate/20210528030411_add_registration_type_to_conference_invite.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20181030153614) | ||
|
||
class AddRegistrationTypeToConferenceInvite < ActiveRecord::Migration[5.2] | ||
def change | ||
add_column :decidim_conferences_conference_invites, :decidim_conference_registration_type_id, | ||
:integer, index: { name: "idx_conference_invite_to_registration_type_id" } | ||
end | ||
end |
12 changes: 12 additions & 0 deletions
12
db/migrate/20210528030412_add_diploma_fields_to_conference.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20181106092826) | ||
|
||
class AddDiplomaFieldsToConference < ActiveRecord::Migration[5.2] | ||
def change | ||
add_column :decidim_conferences, :signature_name, :string | ||
add_column :decidim_conferences, :signature, :string | ||
add_column :decidim_conferences, :main_logo, :string | ||
add_column :decidim_conferences, :sign_date, :date, index: true | ||
add_column :decidim_conferences, :diploma_sent_at, :datetime, index: true | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
...te/20210528030413_make_price_optional_conference_registration_type.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20181123124424) | ||
|
||
class MakePriceOptionalConferenceRegistrationType < ActiveRecord::Migration[5.2] | ||
def change | ||
change_column_null(:decidim_conferences_registration_types, :price, true) | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
db/migrate/20210528030414_index_foreign_keys_in_decidim_conferences.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20200320105913) | ||
|
||
class IndexForeignKeysInDecidimConferences < ActiveRecord::Migration[5.2] | ||
def change | ||
add_index :decidim_conferences, :decidim_scope_id | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
...30415_index_foreign_keys_in_decidim_conferences_conference_invites.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20200320105914) | ||
|
||
class IndexForeignKeysInDecidimConferencesConferenceInvites < ActiveRecord::Migration[5.2] | ||
def change | ||
add_index :decidim_conferences_conference_invites, :decidim_conference_registration_type_id, name: "ixd_conferences_on_registration_type_id" | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
...index_foreign_keys_in_decidim_conferences_conference_registrations.decidim_conferences.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# frozen_string_literal: true | ||
# This migration comes from decidim_conferences (originally 20200320105915) | ||
|
||
class IndexForeignKeysInDecidimConferencesConferenceRegistrations < ActiveRecord::Migration[5.2] | ||
def change | ||
add_index :decidim_conferences_conference_registrations, :decidim_conference_registration_type_id, name: "idx_conferences_registrations_on_registration_type_id" | ||
end | ||
end |
Oops, something went wrong.