Merge pull request #1570 from tchak/fix-capital-social
Fix capital social for large amounts
This commit is contained in:
commit
b66252eb04
2 changed files with 9 additions and 3 deletions
6
db/migrate/20180307101545_change_capital_social_limit.rb
Normal file
6
db/migrate/20180307101545_change_capital_social_limit.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
class ChangeCapitalSocialLimit < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
change_column :etablissements, :entreprise_capital_social, :integer, limit: 8
|
||||
change_column :entreprises, :capital_social, :integer, limit: 8
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2018_02_26_162351) do
|
||||
ActiveRecord::Schema.define(version: 2018_03_07_101545) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -233,7 +233,7 @@ ActiveRecord::Schema.define(version: 2018_02_26_162351) do
|
|||
|
||||
create_table "entreprises", id: :serial, force: :cascade do |t|
|
||||
t.string "siren"
|
||||
t.integer "capital_social"
|
||||
t.bigint "capital_social"
|
||||
t.string "numero_tva_intracommunautaire"
|
||||
t.string "forme_juridique"
|
||||
t.string "forme_juridique_code"
|
||||
|
@ -266,7 +266,7 @@ ActiveRecord::Schema.define(version: 2018_02_26_162351) do
|
|||
t.integer "dossier_id"
|
||||
t.integer "entreprise_id"
|
||||
t.string "entreprise_siren"
|
||||
t.integer "entreprise_capital_social"
|
||||
t.bigint "entreprise_capital_social"
|
||||
t.string "entreprise_numero_tva_intracommunautaire"
|
||||
t.string "entreprise_forme_juridique"
|
||||
t.string "entreprise_forme_juridique_code"
|
||||
|
|
Loading…
Reference in a new issue