Added Subscription model to send emails

This commit is contained in:
Gopesh Tulsyan 2014-07-24 21:13:03 +05:30
parent ac25561523
commit 41fc21f7f4
5 changed files with 23 additions and 2 deletions

View file

@ -0,0 +1,9 @@
class CreateSubscriptions < ActiveRecord::Migration
def change
create_table :subscriptions do |t|
t.belongs_to :user
t.belongs_to :conference
t.timestamps
end
end
end

View file

@ -408,6 +408,13 @@ ActiveRecord::Schema.define(version: 20140801170430) do
t.datetime "updated_at"
end
create_table "subscriptions", force: true do |t|
t.integer "user_id"
t.integer "conference_id"
t.datetime "created_at"
t.datetime "updated_at"
end
create_table "supporter_levels", force: true do |t|
t.integer "conference_id"
t.string "title", null: false