Skip to content

Commit

Permalink
Merge branch 'shender/fix_db_migration' into revert-670-revert-668-sh…
Browse files Browse the repository at this point in the history
…ender/deploy_group_add_permalink
  • Loading branch information
henders committed Dec 2, 2015
2 parents bc0a2f6 + 5e403bf commit b946936
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions db/migrate/20151201104205_add_permalink_to_deploy_groups.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class AddPermalinkToDeployGroups < ActiveRecord::Migration
def change
add_column :deploy_groups, :permalink, :string
add_index :deploy_groups, :permalink, unique: true
add_column :deploy_groups, :permalink, :string, length: 191
add_index :deploy_groups, :permalink, unique: true, length: 191

DeployGroup.reset_column_information

Expand Down
4 changes: 2 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "env_value", limit: 255, null: false
t.string "permalink", null: false
t.string "permalink", limit: 255, null: false
end

add_index "deploy_groups", ["environment_id"], name: "index_deploy_groups_on_environment_id", using: :btree
add_index "deploy_groups", ["permalink"], name: "index_deploy_groups_on_permalink", unique: true
add_index "deploy_groups", ["permalink"], name: "index_deploy_groups_on_permalink", unique: true, length: {"permalink"=>191}, using: :btree

create_table "deploy_groups_stages", id: false, force: :cascade do |t|
t.integer "deploy_group_id", limit: 4
Expand Down

0 comments on commit b946936

Please sign in to comment.