mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
Add reference numbers to registrars
This commit is contained in:
parent
d61ea17fea
commit
065df13805
7 changed files with 48 additions and 4 deletions
10
db/migrate/20150414092249_add_reference_no_to_registrar.rb
Normal file
10
db/migrate/20150414092249_add_reference_no_to_registrar.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
class AddReferenceNoToRegistrar < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :registrars, :reference_no, :string
|
||||
|
||||
Registrar.all.each do |x|
|
||||
x.generate_iso_11649_reference_no
|
||||
x.save
|
||||
end
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150413115829) do
|
||||
ActiveRecord::Schema.define(version: 20150414092249) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -699,6 +699,7 @@ ActiveRecord::Schema.define(version: 20150413115829) do
|
|||
t.string "directo_handle"
|
||||
t.boolean "vat"
|
||||
t.integer "legacy_id"
|
||||
t.string "reference_no"
|
||||
end
|
||||
|
||||
add_index "registrars", ["code"], name: "index_registrars_on_code", using: :btree
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue