2019-04-28 11:56:16 +03:00
|
|
|
class CreatePropositions < ActiveRecord::Migration[4.2]
|
2015-04-17 02:01:28 +03:00
|
|
|
def change
|
|
|
|
create_table :propositions do |t|
|
|
|
|
t.references :proposer, index: true
|
|
|
|
t.references :proposition_accepting, polymorphic: true
|
2019-04-28 21:10:54 +03:00
|
|
|
t.index [:proposition_accepting_id, :proposition_accepting_type], name: "proposition_accepting_index"
|
2015-04-17 02:01:28 +03:00
|
|
|
t.references :proposable, polymorphic: true, index: true
|
|
|
|
t.integer :status
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|