diff --git a/db/migrate/00000000000001_setup_hstore.rb b/db/migrate/00000000000001_setup_hstore.rb index 10c203dc..9557de41 100644 --- a/db/migrate/00000000000001_setup_hstore.rb +++ b/db/migrate/00000000000001_setup_hstore.rb @@ -2,7 +2,6 @@ class SetupHstore < ActiveRecord::Migration def self.up enable_extension "hstore" end - def self.down disable_extension "hstore" end diff --git a/db/migrate/00000000000002_setup_pg_trgm.rb b/db/migrate/00000000000002_setup_pg_trgm.rb index 6ccb8321..1176b668 100644 --- a/db/migrate/00000000000002_setup_pg_trgm.rb +++ b/db/migrate/00000000000002_setup_pg_trgm.rb @@ -2,7 +2,6 @@ class SetupPgTrgm < ActiveRecord::Migration def self.up enable_extension "pg_trgm" end - def self.down disable_extension "pg_trgm" end diff --git a/db/migrate/20121019101022_create_users.rb b/db/migrate/20121019101022_create_users.rb index c20e05d0..d2b872d9 100644 --- a/db/migrate/20121019101022_create_users.rb +++ b/db/migrate/20121019101022_create_users.rb @@ -1,9 +1,9 @@ class CreateUsers < ActiveRecord::Migration def change create_table :users do |t| - t.string :username, null: false # if you use another field as a username, for example email, you can safely remove this field. - t.string :email, null: false # if you use this field as a username, you might want to make it :null => false. - t.string :password_digest, default: nil + t.string :username, :null => false # if you use another field as a username, for example email, you can safely remove this field. + t.string :email, :null => false # if you use this field as a username, you might want to make it :null => false. + t.string :password_digest, :default => nil t.date :date_of_birth t.string :identity_document t.string :member_code @@ -22,4 +22,7 @@ def change add_index :users, :email add_index :users, :organization_id end + end + + diff --git a/db/migrate/20121104085711_create_categories.rb b/db/migrate/20121104085711_create_categories.rb index c1680b54..b3728d16 100644 --- a/db/migrate/20121104085711_create_categories.rb +++ b/db/migrate/20121104085711_create_categories.rb @@ -8,14 +8,14 @@ def change end add_index :categories, :parent_id - create_table :category_hierarchies, id: false do |t| - t.integer :ancestor_id, null: false # ID of the parent/grandparent/great-grandparent/... tag - t.integer :descendant_id, null: false # ID of the target tag - t.integer :generations, null: false # Number of generations between the ancestor and the descendant. Parent/child = 1, for example. + create_table :category_hierarchies, :id => false do |t| + t.integer :ancestor_id, :null => false # ID of the parent/grandparent/great-grandparent/... tag + t.integer :descendant_id, :null => false # ID of the target tag + t.integer :generations, :null => false # Number of generations between the ancestor and the descendant. Parent/child = 1, for example. end # For "all progeny of…" selects: - add_index :category_hierarchies, %i[ancestor_id descendant_id], unique: true + add_index :category_hierarchies, [:ancestor_id, :descendant_id], :unique => true # For "all ancestors of…" selects add_index :category_hierarchies, [:descendant_id] diff --git a/db/migrate/20130222185624_create_transfer.rb b/db/migrate/20130222185624_create_transfer.rb index 2bb13225..75d3ce92 100644 --- a/db/migrate/20130222185624_create_transfer.rb +++ b/db/migrate/20130222185624_create_transfer.rb @@ -1,5 +1,7 @@ class CreateTransfer < ActiveRecord::Migration - def up; end + def up + end - def down; end + def down + end end diff --git a/db/migrate/20130621102219_remove_features_from_categories.rb b/db/migrate/20130621102219_remove_features_from_categories.rb index ba90f3dc..6cdb6f10 100644 --- a/db/migrate/20130621102219_remove_features_from_categories.rb +++ b/db/migrate/20130621102219_remove_features_from_categories.rb @@ -11,3 +11,4 @@ def change drop_table :category_hierarchies end end + diff --git a/db/migrate/20130621105452_acts_as_taggable_on_migration.rb b/db/migrate/20130621105452_acts_as_taggable_on_migration.rb index 9c74afa6..e8b978d9 100644 --- a/db/migrate/20130621105452_acts_as_taggable_on_migration.rb +++ b/db/migrate/20130621105452_acts_as_taggable_on_migration.rb @@ -9,18 +9,18 @@ def self.up # You should make sure that the column created is # long enough to store the required class names. - t.references :taggable, polymorphic: true - t.references :tagger, polymorphic: true + t.references :taggable, :polymorphic => true + t.references :tagger, :polymorphic => true # Limit is created to prevent MySQL error on index # length for MyISAM table type: http://bit.ly/vgW2Ql - t.string :context, limit: 128 + t.string :context, :limit => 128 t.datetime :created_at end add_index :taggings, :tag_id - add_index :taggings, %i[taggable_id taggable_type context] + add_index :taggings, [:taggable_id, :taggable_type, :context] end def self.down diff --git a/db/migrate/20131025202608_add_name_translations_to_category.rb b/db/migrate/20131025202608_add_name_translations_to_category.rb index 5c8cc592..5cbcfa93 100644 --- a/db/migrate/20131025202608_add_name_translations_to_category.rb +++ b/db/migrate/20131025202608_add_name_translations_to_category.rb @@ -3,7 +3,6 @@ def up add_column :categories, :name_translations, :hstore remove_column :categories, :name end - def down remove_column :categories, :name_translations, :hstore add_column :categories, :name diff --git a/db/migrate/20131027215517_add_tags_to_posts.rb b/db/migrate/20131027215517_add_tags_to_posts.rb index 009b2bfc..e03410a2 100644 --- a/db/migrate/20131027215517_add_tags_to_posts.rb +++ b/db/migrate/20131027215517_add_tags_to_posts.rb @@ -6,7 +6,7 @@ def up say "Tag column added" ActiveRecord::Base.connection.execute( - <<-SQL + <<-SQL WITH prepared_tags AS ( SELECT "posts"."id" AS "id", array_agg("tags"."name") AS "tags" FROM "posts" @@ -28,6 +28,7 @@ def up drop_table :tags say "acts_as_taggable_on tables removed" + end def down @@ -42,20 +43,23 @@ def down # You should make sure that the column created is # long enough to store the required class names. - t.references :taggable, polymorphic: true - t.references :tagger, polymorphic: true + t.references :taggable, :polymorphic => true + t.references :tagger, :polymorphic => true # Limit is created to prevent MySQL error on index # length for MyISAM table type: http://bit.ly/vgW2Ql - t.string :context, limit: 128 + t.string :context, :limit => 128 t.datetime :created_at end add_index :taggings, :tag_id - add_index :taggings, %i[taggable_id taggable_type context] + add_index :taggings, [:taggable_id, :taggable_type, :context] + remove_column :posts, :tags remove_index :posts, :tags end end + + diff --git a/db/migrate/20131029202724_create_active_admin_comments.rb b/db/migrate/20131029202724_create_active_admin_comments.rb index c521d5d8..90ed7b93 100644 --- a/db/migrate/20131029202724_create_active_admin_comments.rb +++ b/db/migrate/20131029202724_create_active_admin_comments.rb @@ -3,14 +3,14 @@ def self.up create_table :active_admin_comments do |t| t.string :namespace t.text :body - t.string :resource_id, null: false - t.string :resource_type, null: false - t.references :author, polymorphic: true + t.string :resource_id, :null => false + t.string :resource_type, :null => false + t.references :author, :polymorphic => true t.timestamps end add_index :active_admin_comments, [:namespace] - add_index :active_admin_comments, %i[author_type author_id] - add_index :active_admin_comments, %i[resource_type resource_id] + add_index :active_admin_comments, [:author_type, :author_id] + add_index :active_admin_comments, [:resource_type, :resource_id] end def self.down diff --git a/db/migrate/20131104013829_migrate_membership_data.rb b/db/migrate/20131104013829_migrate_membership_data.rb index c0ca4673..42b2c318 100644 --- a/db/migrate/20131104013829_migrate_membership_data.rb +++ b/db/migrate/20131104013829_migrate_membership_data.rb @@ -1,4 +1,5 @@ class MigrateMembershipData < ActiveRecord::Migration + class User < ActiveRecord::Base has_one :account, as: :accountable has_many :members diff --git a/db/migrate/20131220160257_add_active_to_user.rb b/db/migrate/20131220160257_add_active_to_user.rb index 3e3c034d..00de4c4a 100644 --- a/db/migrate/20131220160257_add_active_to_user.rb +++ b/db/migrate/20131220160257_add_active_to_user.rb @@ -1,5 +1,5 @@ class AddActiveToUser < ActiveRecord::Migration def change - add_column :users, :active, :boolean, default: true + add_column :users, :active, :boolean, :default => true end end diff --git a/db/migrate/20131227110122_create_documents.rb b/db/migrate/20131227110122_create_documents.rb index 1be4a017..0fd364b7 100644 --- a/db/migrate/20131227110122_create_documents.rb +++ b/db/migrate/20131227110122_create_documents.rb @@ -9,7 +9,7 @@ def change t.timestamps end - add_index :documents, %i[documentable_id documentable_type] + add_index :documents, [:documentable_id, :documentable_type] add_index :documents, :label end end diff --git a/db/migrate/20131227155440_add_devise_things_to_users.rb b/db/migrate/20131227155440_add_devise_things_to_users.rb index e1bd0c7f..6d9a6d2b 100644 --- a/db/migrate/20131227155440_add_devise_things_to_users.rb +++ b/db/migrate/20131227155440_add_devise_things_to_users.rb @@ -3,7 +3,7 @@ def change change_table :users do |t| ## Database authenticatable # t.string :email, :null => false, :default => '' - t.string :encrypted_password, null: false, default: "" + t.string :encrypted_password, :null => false, :default => '' ## Recoverable t.string :reset_password_token @@ -13,7 +13,7 @@ def change t.datetime :remember_created_at ## Trackable - t.integer :sign_in_count, default: 0 + t.integer :sign_in_count, :default => 0 t.datetime :current_sign_in_at t.datetime :last_sign_in_at t.string :current_sign_in_ip @@ -26,7 +26,7 @@ def change t.string :unconfirmed_email ## Lockable - t.integer :failed_attempts, default: 0 + t.integer :failed_attempts, :default => 0 t.string :unlock_token t.datetime :locked_at diff --git a/db/migrate/20140119161433_add_organization_to_post.rb b/db/migrate/20140119161433_add_organization_to_post.rb index 9328fd5d..7208af3e 100644 --- a/db/migrate/20140119161433_add_organization_to_post.rb +++ b/db/migrate/20140119161433_add_organization_to_post.rb @@ -10,7 +10,6 @@ def up end end end - def down remove_reference :posts, :organization, index: true end diff --git a/db/migrate/20140513141718_add_new_fields_to_organization.rb b/db/migrate/20140513141718_add_new_fields_to_organization.rb index 788d344e..d7a7dfa6 100644 --- a/db/migrate/20140513141718_add_new_fields_to_organization.rb +++ b/db/migrate/20140513141718_add_new_fields_to_organization.rb @@ -1,6 +1,6 @@ class AddNewFieldsToOrganization < ActiveRecord::Migration def change - change_table :organizations do |t| + change_table :organizations do |t| t.string :email t.string :phone t.string :web diff --git a/db/migrate/20140514225527_add_active_fields_to_member.rb b/db/migrate/20140514225527_add_active_fields_to_member.rb index 534e0b24..2ac77b47 100644 --- a/db/migrate/20140514225527_add_active_fields_to_member.rb +++ b/db/migrate/20140514225527_add_active_fields_to_member.rb @@ -1,5 +1,5 @@ class AddActiveFieldsToMember < ActiveRecord::Migration def change - add_column :members, :active, :boolean, default: true + add_column :members, :active, :boolean, :default => true end end diff --git a/db/migrate/20180221161343_create_device_tokens.rb b/db/migrate/20180221161343_create_device_tokens.rb index 6963e592..e2d368e3 100644 --- a/db/migrate/20180221161343_create_device_tokens.rb +++ b/db/migrate/20180221161343_create_device_tokens.rb @@ -1,11 +1,11 @@ class CreateDeviceTokens < ActiveRecord::Migration def change create_table :device_tokens do |t| - t.integer :user_id, null: false - t.string :token, null: false + t.integer :user_id, :null => false + t.string :token, :null => false t.timestamps end - add_index :device_tokens, %i[user_id token], unique: true + add_index :device_tokens, [:user_id, :token], unique: true end end diff --git a/db/migrate/20180501093846_create_events.rb b/db/migrate/20180501093846_create_events.rb index 2014ab0d..af3fffbe 100644 --- a/db/migrate/20180501093846_create_events.rb +++ b/db/migrate/20180501093846_create_events.rb @@ -9,20 +9,20 @@ class CreateEvents < ActiveRecord::Migration def up create_table :events do |t| - t.integer :action, null: false + t.integer :action, null:false t.integer :post_id t.integer :member_id t.integer :transfer_id t.timestamps end - add_foreign_key :events, :posts, name: "events_post_id_fkey" - add_foreign_key :events, :members, name: "events_member_id_fkey" - add_foreign_key :events, :transfers, name: "events_transfer_id_fkey" + add_foreign_key :events, :posts, name: 'events_post_id_fkey' + add_foreign_key :events, :members, name: 'events_member_id_fkey' + add_foreign_key :events, :transfers, name: 'events_transfer_id_fkey' - add_index :events, :post_id, unique: true, where: "post_id IS NOT NULL" - add_index :events, :member_id, unique: true, where: "member_id IS NOT NULL" - add_index :events, :transfer_id, unique: true, where: "transfer_id IS NOT NULL" + add_index :events, :post_id, unique: true, where: 'post_id IS NOT NULL' + add_index :events, :member_id, unique: true, where: 'member_id IS NOT NULL' + add_index :events, :transfer_id, unique: true, where: 'transfer_id IS NOT NULL' execute <<-SQL ALTER TABLE events diff --git a/db/migrate/20180529144243_change_index_on_events.rb b/db/migrate/20180529144243_change_index_on_events.rb index 8696e972..f0753c69 100644 --- a/db/migrate/20180529144243_change_index_on_events.rb +++ b/db/migrate/20180529144243_change_index_on_events.rb @@ -4,8 +4,8 @@ def change remove_index :events, :member_id remove_index :events, :transfer_id - add_index :events, :post_id, where: "post_id IS NOT NULL" - add_index :events, :member_id, where: "member_id IS NOT NULL" - add_index :events, :transfer_id, where: "transfer_id IS NOT NULL" + add_index :events, :post_id, where: 'post_id IS NOT NULL' + add_index :events, :member_id, where: 'member_id IS NOT NULL' + add_index :events, :transfer_id, where: 'transfer_id IS NOT NULL' end end diff --git a/db/migrate/20180604145622_add_title_to_push_notification.rb b/db/migrate/20180604145622_add_title_to_push_notification.rb index 1e3c3fe6..9b4a91ed 100644 --- a/db/migrate/20180604145622_add_title_to_push_notification.rb +++ b/db/migrate/20180604145622_add_title_to_push_notification.rb @@ -1,6 +1,6 @@ class AddTitleToPushNotification < ActiveRecord::Migration def up - add_column :push_notifications, :title, :string, null: false, default: "" + add_column :push_notifications, :title, :string, null: false, default: '' end def down diff --git a/db/migrate/20180828160700_add_body_to_push_notification.rb b/db/migrate/20180828160700_add_body_to_push_notification.rb index 811f718b..52e697ca 100644 --- a/db/migrate/20180828160700_add_body_to_push_notification.rb +++ b/db/migrate/20180828160700_add_body_to_push_notification.rb @@ -1,6 +1,6 @@ class AddBodyToPushNotification < ActiveRecord::Migration def up - add_column :push_notifications, :body, :string, null: false, default: "" + add_column :push_notifications, :body, :string, null: false, default: '' end def down diff --git a/db/migrate/20180831161349_add_data_to_push_notification.rb b/db/migrate/20180831161349_add_data_to_push_notification.rb index d7ecb237..410349f2 100644 --- a/db/migrate/20180831161349_add_data_to_push_notification.rb +++ b/db/migrate/20180831161349_add_data_to_push_notification.rb @@ -1,6 +1,6 @@ class AddDataToPushNotification < ActiveRecord::Migration def up - add_column :push_notifications, :data, :json, null: false, default: "{}" + add_column :push_notifications, :data, :json, null: false, default: '{}' end def down diff --git a/db/migrate/20180924164456_process_invalid_push_notifications.rb b/db/migrate/20180924164456_process_invalid_push_notifications.rb index 3e2bf2d9..c29bde84 100644 --- a/db/migrate/20180924164456_process_invalid_push_notifications.rb +++ b/db/migrate/20180924164456_process_invalid_push_notifications.rb @@ -12,6 +12,6 @@ def up end def down - puts "no." + puts 'no.' end end diff --git a/db/migrate/20181004200104_add_amount_constraint_to_movements.rb b/db/migrate/20181004200104_add_amount_constraint_to_movements.rb index 667162c1..978eb026 100644 --- a/db/migrate/20181004200104_add_amount_constraint_to_movements.rb +++ b/db/migrate/20181004200104_add_amount_constraint_to_movements.rb @@ -5,6 +5,6 @@ def change movement.transfer&.destroy end - execute "ALTER TABLE movements ADD CONSTRAINT non_zero_amount CHECK(amount != 0)" + execute 'ALTER TABLE movements ADD CONSTRAINT non_zero_amount CHECK(amount != 0)' end end diff --git a/db/migrate/20210502160343_create_active_storage_tables.active_storage.rb b/db/migrate/20210502160343_create_active_storage_tables.active_storage.rb index f8c49025..87798267 100644 --- a/db/migrate/20210502160343_create_active_storage_tables.active_storage.rb +++ b/db/migrate/20210502160343_create_active_storage_tables.active_storage.rb @@ -11,7 +11,7 @@ def change t.string :checksum, null: false t.datetime :created_at, null: false - t.index [:key], unique: true + t.index [ :key ], unique: true end create_table :active_storage_attachments do |t| @@ -21,8 +21,7 @@ def change t.datetime :created_at, null: false - t.index %i[record_type record_id name blob_id], - name: "index_active_storage_attachments_uniqueness", unique: true + t.index [ :record_type, :record_id, :name, :blob_id ], name: "index_active_storage_attachments_uniqueness", unique: true t.foreign_key :active_storage_blobs, column: :blob_id end @@ -30,8 +29,7 @@ def change t.belongs_to :blob, null: false, index: false t.string :variation_digest, null: false - t.index %i[blob_id variation_digest], - name: "index_active_storage_variant_records_uniqueness", unique: true + t.index %i[ blob_id variation_digest ], name: "index_active_storage_variant_records_uniqueness", unique: true t.foreign_key :active_storage_blobs, column: :blob_id end end diff --git a/db/migrate/20230312231058_migrate_hstore_to_json.rb b/db/migrate/20230312231058_migrate_hstore_to_json.rb index 23be0cae..7ab08b7a 100644 --- a/db/migrate/20230312231058_migrate_hstore_to_json.rb +++ b/db/migrate/20230312231058_migrate_hstore_to_json.rb @@ -1,8 +1,7 @@ class MigrateHstoreToJson < ActiveRecord::Migration[6.1] def up rename_column :categories, :name_translations, :name_translations_hstore - add_column :categories, :name_translations, :jsonb, default: {}, null: false, - index: { using: "gin" } + add_column :categories, :name_translations, :jsonb, default: {}, null: false, index: { using: 'gin' } execute 'UPDATE "categories" SET "name_translations" = json_object(hstore_to_matrix("name_translations_hstore"))::jsonb' remove_column :categories, :name_translations_hstore end diff --git a/db/migrate/20230314233504_add_icon_name_to_categories.rb b/db/migrate/20230314233504_add_icon_name_to_categories.rb index 82c3efce..7376d3a8 100644 --- a/db/migrate/20230314233504_add_icon_name_to_categories.rb +++ b/db/migrate/20230314233504_add_icon_name_to_categories.rb @@ -4,19 +4,19 @@ def change # Initialize icon names for each category with mapping defined in #673 icon_mapping = { - "Acompañamiento" => "random", - "Asesoramiento" => "briefcase", - "Clases" => "education", - "Estética" => "scissors", - "Ocio" => "music", - "Otros" => "asterisk", - "Préstamo de herramientas, material, libros, ..." => "wrench", - "Salud" => "apple", - "Tareas administrativas" => "list-alt", - "Tareas domésticas" => "shopping-cart" + 'Acompañamiento' => 'random', + 'Asesoramiento' => 'briefcase', + 'Clases' => 'education', + 'Estética' => 'scissors', + 'Ocio' => 'music', + 'Otros' => 'asterisk', + 'Préstamo de herramientas, material, libros, ...' => 'wrench', + 'Salud' => 'apple', + 'Tareas administrativas' => 'list-alt', + 'Tareas domésticas' => 'shopping-cart' } Category.all.each do |category| - category.update(icon_name: icon_mapping[category.name] || "folder-open") + category.update(icon_name: icon_mapping[category.name] || 'folder-open') end end end diff --git a/db/migrate/20230401114456_make_terms_translatable.rb b/db/migrate/20230401114456_make_terms_translatable.rb index c65e675f..c03e9ed2 100644 --- a/db/migrate/20230401114456_make_terms_translatable.rb +++ b/db/migrate/20230401114456_make_terms_translatable.rb @@ -3,8 +3,7 @@ def up add_column :documents, :title_translations, :jsonb, default: {}, null: false add_column :documents, :content_translations, :jsonb, default: {}, null: false Document.find_each do |doc| - doc.update_columns(title_translations: { es: doc[:title] }, - content_translations: { es: doc[:content] }) + doc.update_columns(title_translations: { es: doc[:title] }, content_translations: { es: doc[:content] }) end remove_column :documents, :title remove_column :documents, :content @@ -14,8 +13,7 @@ def down add_column :documents, :title, :text add_column :documents, :content, :text Document.find_each do |doc| - doc.update_columns(title: doc.title_translations["es"], - content: doc.content_translations["es"]) + doc.update_columns(title: doc.title_translations["es"], content: doc.content_translations["es"]) end remove_column :documents, :title_translations remove_column :documents, :content_translations diff --git a/db/migrate/20231120164346_add_unique_index_on_member_uid_in_members.rb b/db/migrate/20231120164346_add_unique_index_on_member_uid_in_members.rb index 4da1e26e..56315453 100644 --- a/db/migrate/20231120164346_add_unique_index_on_member_uid_in_members.rb +++ b/db/migrate/20231120164346_add_unique_index_on_member_uid_in_members.rb @@ -1,5 +1,5 @@ class AddUniqueIndexOnMemberUidInMembers < ActiveRecord::Migration[6.1] def change - add_index :members, %i[organization_id member_uid], unique: true + add_index :members, [:organization_id, :member_uid], unique: true end end diff --git a/db/seeds.rb b/db/seeds.rb index fcdcea84..f0aece73 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -144,7 +144,7 @@ EOF post.category_id = 5 post.user_id = 1 - post.tags = %w[Rails Ruby programación] + post.tags = ["Rails", "Ruby", "programación"] post.organization_id = 1 end @@ -154,7 +154,7 @@ EOF post.category_id = 7 post.user_id = 1 - post.tags = %w[Cocinar Cocina] + post.tags = ["Cocinar", "Cocina"] post.organization_id = 1 end @@ -165,7 +165,7 @@ EOF post.category_id = 5 post.user_id = 2 - post.tags = %w[Yoga Estiramientos Respiración Meditación] + post.tags = ["Yoga", "Estiramientos", "Respiración", "Meditación"] post.organization_id = 1 end @@ -175,7 +175,7 @@ EOF post.category_id = 5 post.user_id = 2 - post.tags = %w[Inglés English Conversación] + post.tags = ["Inglés", "English", "Conversación"] post.organization_id = 1 end @@ -203,7 +203,7 @@ EOF post.category_id = 5 post.user_id = 1 - post.tags = %w[Markdown programación] + post.tags = ["Markdown", "programación"] post.organization_id = 1 end @@ -213,7 +213,7 @@ EOF post.category_id = 3 post.user_id = 3 - post.tags = %w[casa manitas] + post.tags = ["casa", "manitas"] post.organization_id = 1 end @@ -223,7 +223,7 @@ EOF post.category_id = 7 post.user_id = 1 - post.tags = %w[Cocinar Cocina Tupper] + post.tags = ["Cocinar", "Cocina", "Tupper"] post.organization_id = 1 end @@ -233,14 +233,14 @@ EOF post.category_id = 5 post.user_id = 1 - post.tags = %w[Rails Ruby programación] + post.tags = ["Rails", "Ruby", "programación"] post.organization_id = 1 end Inquiry.find_or_create_by(title: "Cocina Tailandesa") do |post| post.category_id = 7 post.user_id = 1 - post.tags = %w[Tailandesa Cocina] + post.tags = ["Tailandesa", "Cocina"] post.organization_id = 1 end @@ -250,7 +250,7 @@ EOF post.category_id = 7 post.user_id = 3 - post.tags = %w[Cocinar Cocina Tupper] + post.tags = ["Cocinar", "Cocina", "Tupper"] post.organization_id = 1 end @@ -260,7 +260,7 @@ EOF post.category_id = 7 post.user_id = 3 - post.tags = %w[Cocinar Cocina Tupper] + post.tags = ["Cocinar", "Cocina", "Tupper"] post.organization_id = 1 end @@ -270,7 +270,7 @@ EOF post.category_id = 5 post.user_id = 1 - post.tags = %w[Inglés gramática Conversación] + post.tags = ["Inglés", "gramática", "Conversación"] post.organization_id = 1 end @@ -288,7 +288,7 @@ EOF post.category_id = 5 post.user_id = 1 - post.tags = %w[Italiano clases Conversación] + post.tags = ["Italiano", "clases", "Conversación"] post.organization_id = 1 end @@ -308,7 +308,7 @@ EOF post.category_id = 5 post.user_id = 2 - post.tags = %w[Yoga Estiramientos Respiración flexibilidad] + post.tags = ["Yoga", "Estiramientos", "Respiración", "flexibilidad"] post.organization_id = 1 end @@ -318,7 +318,7 @@ EOF post.category_id = 5 post.user_id = 2 - post.tags = %w[Meditación Estiramientos Respiración flexibilidad] + post.tags = ["Meditación", "Estiramientos", "Respiración", "flexibilidad"] post.organization_id = 1 end @@ -328,7 +328,7 @@ EOF post.category_id = 5 post.user_id = 1 - post.tags = %w[Aleman Deutsche Conversación] + post.tags = ["Aleman", "Deutsche", "Conversación"] post.organization_id = 1 end