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.

034_create_changesets.rb 520B

12345678910111213141516
  1. class CreateChangesets < ActiveRecord::Migration[4.2]
  2. def self.up
  3. create_table :changesets do |t|
  4. t.column :repository_id, :integer, :null => false
  5. t.column :revision, :integer, :null => false
  6. t.column :committer, :string, :limit => 30
  7. t.column :committed_on, :datetime, :null => false
  8. t.column :comments, :text
  9. end
  10. add_index :changesets, [:repository_id, :revision], :unique => true, :name => :changesets_repos_rev
  11. end
  12. def self.down
  13. drop_table :changesets
  14. end
  15. end