Sha256: 6689b8bc8b71e9520d9487e22589a399c156eebe49e7d1f799e8488b062bce97

Contents?: true

Size: 529 Bytes

Versions: 13

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

class SetUpTestingDb < ActiveRecord::Migration[5.0]
  def change
    create_table :products do |t|
      t.jsonb :options
      t.jsonb :data

      t.string :string_type
      t.integer :integer_type
      t.integer :product_category_id
      t.boolean :boolean_type
      t.float :float_type
      t.time :time_type
      t.date :date_type
      t.datetime :datetime_type
      t.decimal :decimal_type
    end

    create_table :product_categories do |t|
      t.jsonb :options
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
jsonb_accessor-1.4-java db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.4 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.3.10 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.3.10-java db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.3.8 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.3.7-java db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.3.7 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.3.6 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.3.5 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.3.4 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.3.3 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.3.2 db/migrate/20150407031737_set_up_testing_db.rb
jsonb_accessor-1.3.1 db/migrate/20150407031737_set_up_testing_db.rb