period_end_date: next billing cycle for this user map_view_quota: total amount of map views per month a given user is allowed to make This commits also allows to update those attributes using the superadmin API2.0
parent
7c4a7b0148
commit
eb00261ce9
@ -0,0 +1,14 @@
|
||||
class AddPeriodEndDateToUsers < Sequel::Migration
|
||||
def up
|
||||
alter_table :users do
|
||||
add_column :period_end_date, DateTime
|
||||
set_column_default :period_end_date, :now.sql_function
|
||||
end
|
||||
end #up
|
||||
|
||||
def down
|
||||
alter_table :users do
|
||||
drop_column :period_end_date
|
||||
end
|
||||
end #down
|
||||
end
|
@ -0,0 +1,7 @@
|
||||
Sequel.migration do
|
||||
change do
|
||||
alter_table :users do
|
||||
add_column :map_view_quota, :integer, :default => 10000
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in new issue