add migrations

This commit is contained in:
Kyle Drake 2015-04-10 18:31:43 -07:00
parent 5346b7345e
commit 526f4c9543
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,11 @@
Sequel.migration do
up {
DB.add_column :sites, :paypal_profile_id, String
DB.add_column :sites, :paypal_token, String
}
down {
DB.drop_column :sites, :paypal_profile_id
DB.drop_column :sites, :paypal_token
}
end

View file

@ -0,0 +1,9 @@
Sequel.migration do
up {
DB.add_column :sites, :paypal_active, :boolean, default: false
}
down {
DB.drop_column :sites, :paypal_active
}
end