mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -04:00
lk | renames columns on agencies table
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class ChangeAgencyPhoneNumberToAgencyPhone < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :agencies, :phone_number, :phone
|
||||
rename_column :agencies, :agency_name, :name
|
||||
end
|
||||
end
|
||||
+3
-3
@@ -11,19 +11,19 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20160717165815) do
|
||||
ActiveRecord::Schema.define(version: 20160724130507) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
create_table "agencies", force: :cascade do |t|
|
||||
t.string "agency_name"
|
||||
t.string "name"
|
||||
t.string "contact_name"
|
||||
t.string "street_address"
|
||||
t.string "city"
|
||||
t.string "state"
|
||||
t.string "postal_code"
|
||||
t.string "phone_number"
|
||||
t.string "phone"
|
||||
t.string "email"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user