You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20110902000000_create_changeset_parents.rb 530B

1234567891011121314
  1. class CreateChangesetParents < ActiveRecord::Migration[4.2]
  2. def self.up
  3. create_table :changeset_parents, :id => false do |t|
  4. t.column :changeset_id, :integer, :null => false
  5. t.column :parent_id, :integer, :null => false
  6. end
  7. add_index :changeset_parents, [:changeset_id], :unique => false, :name => :changeset_parents_changeset_ids
  8. add_index :changeset_parents, [:parent_id], :unique => false, :name => :changeset_parents_parent_ids
  9. end
  10. def self.down
  11. drop_table :changeset_parents
  12. end
  13. end