lib/generators/voting/templates/db/migrate/create_voting_tables.rb in voting-0.4.0 vs lib/generators/voting/templates/db/migrate/create_voting_tables.rb in voting-0.5.0

- old
+ new

@@ -12,12 +12,12 @@ t.timestamps null: false end add_index :voting_votes, %i[author_id author_type resource_id resource_type scopeable_id scopeable_type], - name: :index_voting_votes_on_author_and_resource_and_scopeable, - unique: true + name: :index_voting_votes_on_author_and_resource_and_scopeable, + unique: true create_table :voting_votings do |t| t.decimal :estimate, default: 0, mull: false, precision: 25, scale: 20 t.integer :negative, default: 0, null: false t.integer :positive, default: 0, null: false @@ -27,9 +27,9 @@ t.timestamps null: false end add_index :voting_votings, %i[resource_id resource_type scopeable_id scopeable_type], - name: :index_voting_votings_on_resource_and_scopeable, - unique: true + name: :index_voting_votings_on_resource_and_scopeable, + unique: true end end