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.

035_create_changes.rb 508B

12345678910111213141516
  1. class CreateChanges < ActiveRecord::Migration[4.2]
  2. def self.up
  3. create_table :changes do |t|
  4. t.column :changeset_id, :integer, :null => false
  5. t.column :action, :string, :limit => 1, :default => "", :null => false
  6. t.column :path, :string, :default => "", :null => false
  7. t.column :from_path, :string
  8. t.column :from_revision, :integer
  9. end
  10. add_index :changes, [:changeset_id], :name => :changesets_changeset_id
  11. end
  12. def self.down
  13. drop_table :changes
  14. end
  15. end