spec/dummy/db/schema.rb in chaskiq-0.0.3 vs spec/dummy/db/schema.rb in chaskiq-0.0.4
- old
+ new
@@ -9,11 +9,11 @@
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20150321205815) do
+ActiveRecord::Schema.define(version: 20150402201729) do
create_table "chaskiq_attachments", force: :cascade do |t|
t.string "image", limit: 255
t.string "content_type", limit: 255
t.integer "size", limit: 4
@@ -47,10 +47,11 @@
t.integer "parent_id", limit: 4
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "list_id", limit: 4
t.integer "template_id", limit: 4
+ t.text "css", limit: 65535
end
add_index "chaskiq_campaigns", ["list_id"], name: "index_chaskiq_campaigns_on_list_id", using: :btree
add_index "chaskiq_campaigns", ["parent_id"], name: "index_chaskiq_campaigns_on_parent_id", using: :btree
add_index "chaskiq_campaigns", ["template_id"], name: "index_chaskiq_campaigns_on_template_id", using: :btree
@@ -98,15 +99,29 @@
t.datetime "updated_at", null: false
end
add_index "chaskiq_subscribers", ["list_id"], name: "index_chaskiq_subscribers_on_list_id", using: :btree
+ create_table "chaskiq_subscriptions", force: :cascade do |t|
+ t.string "state", limit: 255
+ t.integer "campaign_id", limit: 4
+ t.integer "subscriber_id", limit: 4
+ t.integer "list_id", limit: 4
+ t.datetime "created_at", null: false
+ t.datetime "updated_at", null: false
+ end
+
+ add_index "chaskiq_subscriptions", ["campaign_id"], name: "index_chaskiq_subscriptions_on_campaign_id", using: :btree
+ add_index "chaskiq_subscriptions", ["list_id"], name: "index_chaskiq_subscriptions_on_list_id", using: :btree
+ add_index "chaskiq_subscriptions", ["subscriber_id"], name: "index_chaskiq_subscriptions_on_subscriber_id", using: :btree
+
create_table "chaskiq_templates", force: :cascade do |t|
t.string "name", limit: 255
t.text "body", limit: 65535
t.text "html_content", limit: 65535
t.string "screenshot", limit: 255
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
+ t.text "css", limit: 65535
end
end