Sha256: 3290a6812aed8fb2cf8bdb1a29683d97b9711d8fdf8d3d129e479aff375b4e00

Contents?: true

Size: 571 Bytes

Versions: 5

Compression:

Stored size: 571 Bytes

Contents

# frozen_string_literal: true

module CoinsPaid
  module MigrationData
    module_function

    def get
      <<~RUBY
        create_table :coins_paid_addresses do |t|
          t.string :foreign_id, null: false
          t.string :currency, null: false
          t.string :convert_to, null: false
          t.string :address, null: false
          t.string :tag
          t.integer :external_id, null: false

          t.timestamps
          t.index [:foreign_id, :currency, :convert_to], name: :address_currencies, unique: true
        end
      RUBY
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coins_paid_rails-2.1.0 lib/generators/coins_paid/migration_data.rb
coins_paid_rails-2.0.0 lib/generators/coins_paid/migration_data.rb
coins_paid_rails-1.5.0 lib/generators/coins_paid/migration_data.rb
coins_paid_rails-1.4.0 lib/generators/coins_paid/migration_data.rb
coins_paid_rails-1.3.0 lib/generators/coins_paid/migration_data.rb