Rename registrar's url attribute to website

#279
This commit is contained in:
Artur Beljajev 2017-02-21 16:15:26 +02:00
parent 01edbc5710
commit c14d15d7b7
15 changed files with 26 additions and 19 deletions

View file

@ -0,0 +1,5 @@
class RenameRegistrarUrlToWebsite < ActiveRecord::Migration
def change
rename_column :registrars, :url, :website
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20161227193500) do
ActiveRecord::Schema.define(version: 20170221115548) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -1046,7 +1046,7 @@ ActiveRecord::Schema.define(version: 20161227193500) do
t.string "street"
t.string "zip"
t.string "code"
t.string "url"
t.string "website"
t.string "directo_handle"
t.boolean "vat"
t.integer "legacy_id"

View file

@ -2704,7 +2704,7 @@ CREATE TABLE registrars (
street character varying,
zip character varying,
code character varying,
url character varying,
website character varying,
directo_handle character varying,
vat boolean,
legacy_id integer,
@ -5278,3 +5278,5 @@ INSERT INTO schema_migrations (version) VALUES ('20161004101419');
INSERT INTO schema_migrations (version) VALUES ('20161227193500');
INSERT INTO schema_migrations (version) VALUES ('20170221115548');