diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-17 20:21:13 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-17 20:21:13 +0100 |
commit | b800f7c7ec5aa65f773d1c91c1418ca5edac0f2c (patch) | |
tree | e324c15d68fb8d1fdf0b15d7ab668ebc17722378 | |
parent | 24e47521f1a57c73dc349de35909af7e1f8a4a1f (diff) |
rename_column :call_routes, :table, :routing_table
-rw-r--r-- | db/migrate/20130117191840_change_column_name_in_call_route.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 11 insertions, 2 deletions
diff --git a/db/migrate/20130117191840_change_column_name_in_call_route.rb b/db/migrate/20130117191840_change_column_name_in_call_route.rb new file mode 100644 index 0000000..cad0f59 --- /dev/null +++ b/db/migrate/20130117191840_change_column_name_in_call_route.rb @@ -0,0 +1,9 @@ +class ChangeColumnNameInCallRoute < ActiveRecord::Migration + def up + rename_column :call_routes, :table, :routing_table + end + + def down + rename_column :call_routes, :routing_table, :table + end +end diff --git a/db/schema.rb b/db/schema.rb index 8416305..31fdaf7 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130116213312) do +ActiveRecord::Schema.define(:version => 20130117191840) do create_table "access_authorizations", :force => true do |t| t.string "access_authorizationable_type" @@ -177,7 +177,7 @@ ActiveRecord::Schema.define(:version => 20130116213312) do end create_table "call_routes", :force => true do |t| - t.string "table" + t.string "routing_table" t.string "name" t.string "endpoint_type" t.integer "endpoint_id" |