Skip to content

Commit

Permalink
minor fixup to the db schema
Browse files Browse the repository at this point in the history
cycomachead committed Jul 31, 2024
1 parent fdb8db9 commit 57c1da5
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion db/migrate/20230418211420_create_currency_conversions.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class CreateCurrencyConversions < ActiveRecord::Migration[7.0]
def change
create_table :currency_conversions do |t|
create_table :currency_conversions, if_not_exists: true do |t|
t.decimal :rate
t.string :from_currency
t.string :to_currency
5 changes: 2 additions & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2024_07_22_183008) do
ActiveRecord::Schema[7.0].define(version: 2024_04_22_200831) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
enable_extension "plpgsql"
@@ -330,7 +330,6 @@
t.integer "conference_id", null: false
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
t.string "currency"
end

create_table "physical_tickets", force: :cascade do |t|
@@ -545,8 +544,8 @@
t.integer "payment_id"
t.integer "week"
t.float "amount_paid", default: 0.0
t.integer "amount_paid_cents", default: 0
t.string "currency"
t.integer "amount_paid_cents", default: 0
end

create_table "ticket_scannings", force: :cascade do |t|

0 comments on commit 57c1da5

Please sign in to comment.