Skip to content
Snippets Groups Projects
Commit e8f31545 authored by Richard Fernando Heise Ferreira's avatar Richard Fernando Heise Ferreira
Browse files

Merge branch 'issue/13-fix-migrate' into 'develop'

FIX migrates

See merge request rfhf19/cleanning-portalmec!14
parents b0049334 029a4cda
No related branches found
No related tags found
2 merge requests!17Curatorship and Gamification done,!14FIX migrates
Pipeline #30791 failed
......@@ -6,15 +6,15 @@ development:
adapter: postgresql
encoding: unicode
database: portalmec_dev
username: luan
password: luanmatheus
username: arthur
password: senhadopostgres
test:
adapter: postgresql
encoding: unicode
database: portalmec_test
username: luan
password: luanmatheus
username: arthur
password: senhadopostgres
# host: postgres
production:
......
class AddPriorityToComplaintReasons < ActiveRecord::Migration[7.0]
def change
add_column :complaint_reasons, :priority, :integer
end
end
class CreateComplaintVotes < ActiveRecord::Migration[7.0]
def change
create_table :complaint_votes do |t|
t.references :complainable, polymorphic: true, index: true
t.integer :pros
t.integer :cons
t.timestamps
end
add_index :complaint_votes, [:complainable_id], name: 'complainable'
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment