Use Rails 5 conventions in ballot migrations

These migrations and models were added after the Rails 5 branch was
created but before it was merged.
This commit is contained in:
Javi Martín
2019-04-24 19:22:39 +02:00
parent b230cd29ab
commit 4b1cbb7db6
7 changed files with 7 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
class Poll::Ballot < ActiveRecord::Base
class Poll::Ballot < ApplicationRecord
belongs_to :ballot_sheet, class_name: Poll::BallotSheet
validates :ballot_sheet_id, presence: true

View File

@@ -1,4 +1,4 @@
class Poll::BallotSheet < ActiveRecord::Base
class Poll::BallotSheet < ApplicationRecord
belongs_to :poll
belongs_to :officer_assignment
has_many :ballots, class_name: Poll::Ballot