Skip to content

Commit

Permalink
fix migrations for new rails
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-sinina committed Aug 26, 2018
1 parent f257fca commit 1df9418
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ImportingRemoveNotNullConstraint < ActiveRecord::Migration
class ImportingRemoveNotNullConstraint < ActiveRecord::Migration[5.0]
def up
execute %q{
ALTER TABLE data_import.import_customers_auth
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20180405132225_add_rows_count_to_cdr_exports.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddRowsCountToCdrExports < ActiveRecord::Migration
class AddRowsCountToCdrExports < ActiveRecord::Migration[5.0]
def change
add_column :cdr_exports, :rows_count, :integer
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20180416121932_reject_calls_at_customer_auth.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RejectCallsAtCustomerAuth < ActiveRecord::Migration
class RejectCallsAtCustomerAuth < ActiveRecord::Migration[5.0]

def up
execute %q{
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20180418101559_add_src_dst_prefix_to_rtdr.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddSrcDstPrefixToRtdr < ActiveRecord::Migration
class AddSrcDstPrefixToRtdr < ActiveRecord::Migration[5.0]
def change
add_column 'class4.routing_tag_detection_rules', :src_prefix, :string, null: false, default: ''
add_column 'class4.routing_tag_detection_rules', :dst_prefix, :string, null: false, default: ''
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20180425203717_routing_tag_and_operation.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RoutingTagAndOperation < ActiveRecord::Migration
class RoutingTagAndOperation < ActiveRecord::Migration[5.0]
def up
execute %q{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateImportNumberlistItems < ActiveRecord::Migration
class CreateImportNumberlistItems < ActiveRecord::Migration[5.0]
def change
create_table 'data_import.import_numberlists' do |t|
t.integer :o_id, limit: 2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CdrAmountRounding < ActiveRecord::Migration
class CdrAmountRounding < ActiveRecord::Migration[5.0]
def up
execute %q{
create table sys.amount_round_modes(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CustomerPriceNoVatFixNull < ActiveRecord::Migration
class CustomerPriceNoVatFixNull < ActiveRecord::Migration[5.0]
def up
execute %q{
CREATE or replace FUNCTION billing.bill_cdr(i_cdr cdr.cdr) RETURNS cdr.cdr
Expand Down

0 comments on commit 1df9418

Please sign in to comment.