mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
remove useless & broken item_url(...) methods
This commit is contained in:
parent
86336e3619
commit
075b642cc8
@ -1,4 +1,4 @@
|
||||
json.array!(@components) do |component|
|
||||
json.extract! component, :id, :name
|
||||
json.url component_url(component, format: :json)
|
||||
|
||||
end
|
||||
|
@ -4,5 +4,5 @@ json.array!(@credits) do |credit|
|
||||
json.id credit.creditable.id
|
||||
json.name credit.creditable.name
|
||||
end if credit.creditable.present?
|
||||
json.url credit_url(credit, format: :json)
|
||||
|
||||
end
|
||||
|
@ -3,6 +3,6 @@ total = @events.except(:offset, :limit, :order).count
|
||||
json.array!(@events) do |event|
|
||||
json.partial! 'api/events/event', event: event
|
||||
json.event_image_small event.event_image.attachment.small.url if event.event_image
|
||||
json.url event_url(event, format: :json)
|
||||
|
||||
json.nb_total_events total
|
||||
end
|
||||
|
@ -1,5 +1,5 @@
|
||||
json.array!(@events) do |event|
|
||||
json.partial! 'api/events/event', event: event
|
||||
json.event_image_medium event.event_image.attachment.medium.url if event.event_image
|
||||
json.url event_url(event, format: :json)
|
||||
|
||||
end
|
||||
|
@ -1,7 +1,7 @@
|
||||
json.array!(@invoices) do |invoice|
|
||||
json.extract! invoice, :id, :created_at, :reference, :invoiced_type, :user_id, :avoir_date
|
||||
json.total (invoice.total / 100.00)
|
||||
json.url invoice_url(invoice, format: :json)
|
||||
|
||||
json.name invoice.user.profile.full_name
|
||||
json.has_avoir invoice.refunded?
|
||||
json.is_avoir invoice.is_a?(Avoir)
|
||||
|
@ -7,7 +7,7 @@ json.array!(@invoices) do |invoice|
|
||||
json.extract! invoice, :id, :created_at, :reference, :invoiced_type, :avoir_date
|
||||
json.user_id invoice.invoicing_profile.user_id
|
||||
json.total invoice.total / 100.00
|
||||
json.url invoice_url(invoice, format: :json)
|
||||
|
||||
json.name invoice.invoicing_profile.full_name
|
||||
json.has_avoir invoice.refunded?
|
||||
json.is_avoir invoice.is_a?(Avoir)
|
||||
|
@ -1,4 +1,4 @@
|
||||
json.array!(@licences) do |licence|
|
||||
json.extract! licence, :id, :name, :description
|
||||
json.url licence_url(licence, format: :json)
|
||||
|
||||
end
|
||||
|
@ -1,5 +1,5 @@
|
||||
json.array!(@machines) do |machine|
|
||||
json.extract! machine, :id, :name, :description, :spec, :slug, :disabled
|
||||
json.url machine_url(machine, format: :json)
|
||||
|
||||
json.machine_image machine.machine_image.attachment.medium.url if machine.machine_image
|
||||
end
|
||||
|
@ -40,7 +40,7 @@ json.all_projects @member.all_projects do |project|
|
||||
if requested_current || project.state == 'published'
|
||||
json.extract! project, :id, :name, :description, :licence_id, :slug, :state
|
||||
json.author_id project.author.user_id
|
||||
json.url project_url(project, format: :json)
|
||||
|
||||
json.project_image project.project_image.attachment.large.url if project.project_image
|
||||
json.machine_ids project.machine_ids
|
||||
json.machines project.machines do |m|
|
||||
|
@ -3,4 +3,3 @@ json.description t('.an_abuse_was_reported_on_TYPE_ID_NAME_html',
|
||||
TYPE: notification.attached_object.signaled_type,
|
||||
ID: notification.attached_object.signaled_id,
|
||||
NAME: (notification.attached_object.signaled.name ? notification.attached_object.signaled.name : ''))
|
||||
json.url notification_url(notification, format: :json)
|
@ -4,4 +4,4 @@ json.description t('.archive_complete',
|
||||
END: notification.attached_object.end_at,
|
||||
ID: notification.attached_object.id
|
||||
)
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -4,4 +4,4 @@ if notification.attached_object.class.name == AccountingPeriod.name
|
||||
else
|
||||
json.description t('.warning_no_closed_periods', FIRST_DATE: notification.attached_object.created_at.to_date)
|
||||
end
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -3,4 +3,3 @@ json.description t('.export')+' '+
|
||||
t(".#{notification.attached_object.category}_#{notification.attached_object.export_type}")+' '+
|
||||
t('.is_over')+' '+
|
||||
link_to( t('.download_here'), "api/exports/#{notification.attached_object.id}/download" )+'.'
|
||||
json.url notification_url(notification, format: :json)
|
@ -1,3 +1,3 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.warning_free_disk_space', AVAILABLE: number_with_delimiter(notification.meta_data['mb_available']))
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -3,4 +3,3 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.import_over', CATEGORY: t(".#{notification.attached_object.category}")) +
|
||||
link_to(t('.view_results'), "#!/admin/members/import/#{notification.attached_object.id}/results")
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
@ -6,4 +6,4 @@ json.title notification.notification_type
|
||||
json.description _t('.invoices_generation_was_STATUS_for_user_NAME_html',
|
||||
STATUS: notification.attached_object.invoicing_disabled.to_s,
|
||||
NAME: notification.attached_object&.profile&.full_name || t('api.notifications.deleted_user')) # messageFormat
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -2,4 +2,4 @@ json.title notification.notification_type
|
||||
json.description t('.a_RESERVABLE_reservation_was_made_by_USER_html',
|
||||
RESERVABLE: notification.attached_object.reservable.name,
|
||||
USER: notification.attached_object.user&.profile&.full_name || t('api.notifications.deleted_user'))
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -5,4 +5,4 @@ json.title notification.notification_type
|
||||
json.description t('.account_imported_from_PROVIDER_UID_has_completed_its_information_html',
|
||||
PROVIDER: notification.attached_object.provider || default_provider,
|
||||
UID: notification.attached_object.uid || notification.attached_object.id)
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -2,4 +2,4 @@ json.title notification.notification_type
|
||||
json.description t('.refund_created',
|
||||
AMOUNT: number_to_currency(notification.attached_object.total / 100.00),
|
||||
USER: notification.attached_object.invoicing_profile&.full_name)
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -2,4 +2,4 @@ json.title notification.notification_type
|
||||
json.description t('.USER_s_reservation_on_the_DATE_was_cancelled_remember_to_generate_a_refund_invoice_if_applicable_html',
|
||||
USER: notification.attached_object.reservation.user&.profile&.full_name || t('api.notifications.deleted_user'),
|
||||
DATE: I18n.l(notification.attached_object.start_at, format: :long))
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.a_booking_slot_was_modified')
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -2,4 +2,4 @@ json.title notification.notification_type
|
||||
json.description t('.subscription_PLAN_has_been_subscribed_by_USER_html',
|
||||
PLAN: notification.attached_object.plan.name,
|
||||
USER: notification.attached_object.user&.profile&.full_name || t('api.notifications.deleted_user'))
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.USER_s_subscription_has_been_cancelled',
|
||||
USER: notification.attached_object.user&.profile&.full_name || t('api.notifications.deleted_user'))
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -6,4 +6,4 @@ json.description _t('.subscription_PLAN_of_the_member_USER_has_been_extended_FRE
|
||||
FREE: notification.get_meta_data(:free_days).to_s,
|
||||
DATE: I18n.l(notification.attached_object.expired_at.to_date)
|
||||
}) # messageFormat
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.USER_s_subscription_has_expired',
|
||||
USER:notification.attached_object.user&.profile&.full_name || t('api.notifications.deleted_user'))
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.USER_s_subscription_will_expire_in_7_days',
|
||||
USER: notification.attached_object.user&.profile&.full_name || t('api.notifications.deleted_user'))
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -4,4 +4,4 @@ json.description _t('.user_NAME_changed_his_group_html',
|
||||
NAME: notification.attached_object&.profile&.full_name || t('api.notifications.deleted_user'),
|
||||
GENDER: bool_to_sym(notification.attached_object&.statistic_profile&.gender)
|
||||
}) # messageFormat
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -6,4 +6,4 @@ json.description _t('.user_NAME_has_merged_his_account_with_the_one_imported_fro
|
||||
PROVIDER: notification.attached_object&.provider,
|
||||
UID: notification.attached_object&.uid
|
||||
}) # messageFormat
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -4,4 +4,4 @@ json.description t('.wallet_is_credited',
|
||||
AMOUNT: number_to_currency(amount),
|
||||
USER: notification.attached_object.wallet.user&.profile&.full_name || t('api.notifications.deleted_user'),
|
||||
ADMIN: notification.attached_object.user&.profile&.full_name || t('api.notifications.deleted_user'))
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -2,4 +2,4 @@ json.title notification.notification_type
|
||||
json.description t('.project_NAME_has_been_published_html',
|
||||
ID: notification.attached_object.slug,
|
||||
NAME: notification.attached_object.name)
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -2,4 +2,4 @@ json.title notification.notification_type
|
||||
json.description t('.a_new_user_account_has_been_created_NAME_EMAIL_html',
|
||||
NAME: notification.attached_object&.profile&.full_name || t('api.notifications.deleted_user'),
|
||||
EMAIL: notification.attached_object&.email)
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -2,4 +2,4 @@ json.title notification.notification_type
|
||||
json.description t('.a_new_user_account_has_been_imported_from_PROVIDER_UID_html',
|
||||
PROVIDER: notification.attached_object.provider,
|
||||
UID: notification.attached_object.uid)
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -4,4 +4,4 @@ json.title notification.notification_type
|
||||
json.description t('.user_NAME_changed_ROLE_html',
|
||||
NAME: notification.attached_object&.profile&.full_name || t('api.notifications.deleted_user'),
|
||||
ROLE: t("roles.#{notification.attached_object&.role}"))
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -8,4 +8,4 @@ else
|
||||
AMOUNT: number_to_currency(notification.attached_object.amount_off / 100.00),
|
||||
CODE: notification.attached_object.code)
|
||||
end
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.your_reservation_RESERVABLE_was_successfully_saved_html',
|
||||
RESERVABLE: notification.attached_object.reservable.name)
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -2,4 +2,4 @@ json.title notification.notification_type
|
||||
json.description t('.reminder_you_have_a_reservation_RESERVABLE_to_be_held_on_DATE_html',
|
||||
RESERVABLE: notification.attached_object.reservable.name,
|
||||
DATE: I18n.l(notification.attached_object.slots.order(:start_at).first.start_at, format: :long))
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -2,4 +2,4 @@ json.title notification.notification_type
|
||||
json.description t('.your_reservation_RESERVABLE_of_DATE_was_successfully_cancelled',
|
||||
RESERVABLE: notification.attached_object.reservation.reservable.name,
|
||||
DATE: I18n.l(notification.attached_object.start_at, format: :long))
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.your_reservation_slot_was_successfully_changed')
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.you_have_subscribed_to_PLAN_html',
|
||||
PLAN: notification.attached_object.plan.name)
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -5,4 +5,4 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.you_have_changed_your_subscription_to_PLAN_html',
|
||||
PLAN: notification.attached_object.plan.name)
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.your_subscription_PLAN_was_successfully_cancelled_html',
|
||||
PLAN: notification.attached_object.plan.name)
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -5,4 +5,4 @@ json.description _t('.your_subscription_PLAN_has_been_extended_FREE_until_DATE_h
|
||||
FREE: notification.get_meta_data(:free_days).to_s,
|
||||
DATE: I18n.l(notification.attached_object.expired_at.to_date)
|
||||
}) # messageFormat
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.your_subscription_has_expired')
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.your_subscription_will_expire_in_7_days')
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -4,4 +4,4 @@ json.description t('.subscription_partner_PLAN_has_been_subscribed_by_USER_html'
|
||||
PLAN: notification.attached_object.plan.name,
|
||||
USER: notification.attached_object.user&.profile&.full_name || t('api.notifications.deleted_user')
|
||||
}) # messageFormat
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.policy_updated') +
|
||||
"<a href='/#!/privacy-policy>#{t('.click_to_show')}</a>."
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -2,4 +2,4 @@ json.title notification.notification_type
|
||||
json.description t('.USER_became_collaborator_of_your_project',
|
||||
USER: notification.attached_object.user&.profile&.full_name || t('api.notifications.deleted_user')) +
|
||||
"<a href='/#!/projects/#{notification.attached_object.project.slug}'><strong><em> #{notification.attached_object.project.name}</em></strong></a>."
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.you_are_invited_to_collaborate_on_the_project') +
|
||||
"<a href='/#!/projects/#{notification.attached_object.project.slug}'><strong><em>#{notification.attached_object.project.name}</em></strong></a>."
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.your_account_was_migrated')
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.your_profile_was_completed')
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
json.title notification.notification_type
|
||||
json.description t('.your_role_is_ROLE', ROLE: t("roles.#{notification.attached_object&.role}"))
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.your_TRAINING_was_validated_html',
|
||||
TRAINING: notification.attached_object.training.name)
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
json.title notification.notification_type
|
||||
json.description t('.your_group_has_changed')
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -2,4 +2,4 @@ json.title notification.notification_type
|
||||
amount = notification.attached_object.amount
|
||||
json.description t('.your_wallet_is_credited',
|
||||
AMOUNT: number_to_currency(amount))
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -4,4 +4,4 @@ json.description t('.your_avoir_is_ready_html',
|
||||
REFERENCE: notification.attached_object.reference,
|
||||
AMOUNT: number_to_currency(amount),
|
||||
INVOICE_ID: notification.attached_object.id)
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -4,4 +4,4 @@ json.description t('.your_invoice_is_ready_html',
|
||||
REFERENCE: notification.attached_object.reference,
|
||||
AMOUNT: number_to_currency(amount),
|
||||
INVOICE_ID: notification.attached_object.id)
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -2,4 +2,4 @@ json.title t('.unknown_notification')
|
||||
json.description t('.notification_ID_wrong_type_TYPE_unknown',
|
||||
ID: notification.id,
|
||||
TYPE: notification.notification_type_id)
|
||||
json.url notification_url(notification, format: :json)
|
||||
|
||||
|
@ -3,4 +3,3 @@ json.attached_object @notification.attached_object
|
||||
json.message do
|
||||
json.partial! "/api/notifications/#{@notification.notification_type}", notification: @notification
|
||||
end
|
||||
json.url notification_url(@notification, format: :json)
|
||||
|
@ -3,7 +3,7 @@
|
||||
json.projects @projects do |project|
|
||||
json.extract! project, :id, :name, :description, :licence_id, :slug, :state
|
||||
json.author_id project.author.user_id
|
||||
json.url project_url(project, format: :json)
|
||||
|
||||
json.project_image project.project_image.attachment.medium.url if project.project_image
|
||||
json.user_ids project.user_ids
|
||||
end
|
||||
|
@ -2,6 +2,6 @@
|
||||
|
||||
json.array!(@projects) do |project|
|
||||
json.extract! project, :id, :name, :description, :slug
|
||||
json.url project_url(project, format: :json)
|
||||
|
||||
json.project_image project.project_image.attachment.large.url if project.project_image
|
||||
end
|
||||
|
@ -1,4 +1,4 @@
|
||||
json.array!(@reservations) do |r|
|
||||
json.partial! 'api/reservations/reservation', reservation: r
|
||||
json.url reservation_url(r, format: :json)
|
||||
|
||||
end
|
||||
|
@ -1,4 +1,4 @@
|
||||
json.array!(@themes) do |theme|
|
||||
json.extract! theme, :id, :name
|
||||
json.url theme_url(theme, format: :json)
|
||||
|
||||
end
|
||||
|
22
db/schema.rb
22
db/schema.rb
@ -18,8 +18,8 @@ ActiveRecord::Schema.define(version: 2020_05_11_075933) do
|
||||
enable_extension "unaccent"
|
||||
|
||||
create_table "abuses", id: :serial, force: :cascade do |t|
|
||||
t.string "signaled_type"
|
||||
t.integer "signaled_id"
|
||||
t.string "signaled_type"
|
||||
t.string "first_name"
|
||||
t.string "last_name"
|
||||
t.string "email"
|
||||
@ -48,8 +48,8 @@ ActiveRecord::Schema.define(version: 2020_05_11_075933) do
|
||||
t.string "locality"
|
||||
t.string "country"
|
||||
t.string "postal_code"
|
||||
t.string "placeable_type"
|
||||
t.integer "placeable_id"
|
||||
t.string "placeable_type"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
@ -63,8 +63,8 @@ ActiveRecord::Schema.define(version: 2020_05_11_075933) do
|
||||
end
|
||||
|
||||
create_table "assets", id: :serial, force: :cascade do |t|
|
||||
t.string "viewable_type"
|
||||
t.integer "viewable_id"
|
||||
t.string "viewable_type"
|
||||
t.string "attachment"
|
||||
t.string "type"
|
||||
t.datetime "created_at"
|
||||
@ -132,8 +132,8 @@ ActiveRecord::Schema.define(version: 2020_05_11_075933) do
|
||||
end
|
||||
|
||||
create_table "credits", id: :serial, force: :cascade do |t|
|
||||
t.string "creditable_type"
|
||||
t.integer "creditable_id"
|
||||
t.string "creditable_type"
|
||||
t.integer "plan_id"
|
||||
t.integer "hours"
|
||||
t.datetime "created_at"
|
||||
@ -285,8 +285,8 @@ ActiveRecord::Schema.define(version: 2020_05_11_075933) do
|
||||
end
|
||||
|
||||
create_table "invoices", id: :serial, force: :cascade do |t|
|
||||
t.string "invoiced_type"
|
||||
t.integer "invoiced_id"
|
||||
t.string "invoiced_type"
|
||||
t.string "stp_invoice_id"
|
||||
t.integer "total"
|
||||
t.datetime "created_at"
|
||||
@ -349,15 +349,15 @@ ActiveRecord::Schema.define(version: 2020_05_11_075933) do
|
||||
|
||||
create_table "notifications", id: :serial, force: :cascade do |t|
|
||||
t.integer "receiver_id"
|
||||
t.string "attached_object_type"
|
||||
t.integer "attached_object_id"
|
||||
t.string "attached_object_type"
|
||||
t.integer "notification_type_id"
|
||||
t.boolean "is_read", default: false
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "receiver_type"
|
||||
t.boolean "is_send", default: false
|
||||
t.jsonb "meta_data", default: "{}"
|
||||
t.jsonb "meta_data", default: {}
|
||||
t.index ["notification_type_id"], name: "index_notifications_on_notification_type_id"
|
||||
t.index ["receiver_id"], name: "index_notifications_on_receiver_id"
|
||||
end
|
||||
@ -457,8 +457,8 @@ ActiveRecord::Schema.define(version: 2020_05_11_075933) do
|
||||
create_table "prices", id: :serial, force: :cascade do |t|
|
||||
t.integer "group_id"
|
||||
t.integer "plan_id"
|
||||
t.string "priceable_type"
|
||||
t.integer "priceable_id"
|
||||
t.string "priceable_type"
|
||||
t.integer "amount"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
@ -565,8 +565,8 @@ ActiveRecord::Schema.define(version: 2020_05_11_075933) do
|
||||
t.text "message"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.string "reservable_type"
|
||||
t.integer "reservable_id"
|
||||
t.string "reservable_type"
|
||||
t.integer "nb_reserve_places"
|
||||
t.integer "statistic_profile_id"
|
||||
t.index ["reservable_type", "reservable_id"], name: "index_reservations_on_reservable_type_and_reservable_id"
|
||||
@ -575,8 +575,8 @@ ActiveRecord::Schema.define(version: 2020_05_11_075933) do
|
||||
|
||||
create_table "roles", id: :serial, force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.string "resource_type"
|
||||
t.integer "resource_id"
|
||||
t.string "resource_type"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.index ["name", "resource_type", "resource_id"], name: "index_roles_on_name_and_resource_type_and_resource_id"
|
||||
@ -867,8 +867,8 @@ ActiveRecord::Schema.define(version: 2020_05_11_075933) do
|
||||
|
||||
create_table "wallet_transactions", id: :serial, force: :cascade do |t|
|
||||
t.integer "wallet_id"
|
||||
t.string "transactable_type"
|
||||
t.integer "transactable_id"
|
||||
t.string "transactable_type"
|
||||
t.string "transaction_type"
|
||||
t.integer "amount"
|
||||
t.datetime "created_at", null: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user