mint_reporter 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +34 -0
- data/app/controllers/admin/reports_controller.rb +3 -0
- data/app/models/report.rb +86 -0
- data/app/views/admin/reports/_form.html.erb +40 -0
- data/app/views/admin/reports/edit.html.erb +14 -0
- data/app/views/admin/reports/index.html.erb +96 -0
- data/app/views/admin/reports/new.html.erb +13 -0
- data/app/views/admin/reports/show.html.erb +51 -0
- data/app/workers/csv_generation_worker.rb +8 -0
- data/config/initializers/mime_types.rb +1 -0
- data/config/routes.rb +5 -0
- data/db/migrate/20140703143528_create_reports.rb +16 -0
- data/lib/generators/mint_report/USAGE +8 -0
- data/lib/generators/mint_report/mint_report_generator.rb +7 -0
- data/lib/generators/mint_report/templates/mint_report.rb +9 -0
- data/lib/mint_reporter.rb +17 -0
- data/lib/mint_reporter/engine.rb +4 -0
- data/lib/mint_reporter/version.rb +3 -0
- data/lib/tasks/mint_reporter_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/admin.js +31 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/admin.scss +11 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/admin/admin_controller.rb +3 -0
- data/test/dummy/app/controllers/application_controller.rb +7 -0
- data/test/dummy/app/helpers/application_helper.rb +8 -0
- data/test/dummy/app/models/user.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +7 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +6 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +59 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20140716113109_create_users.rb +9 -0
- data/test/dummy/db/migrate/20140723162342_create_reports.mint_reporter_engine.rb +17 -0
- data/test/dummy/db/production.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +35 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +293 -0
- data/test/dummy/log/test.log +17259 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/uploads/test/basic_reports/000/000/001/original.csv +3 -0
- data/test/dummy/test/factories/foos.rb +6 -0
- data/test/dummy/tmp/cache/assets/test/sass/051af4935d2ac60904721027c383dd9ffc9f7871/_admin-base.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sass/7f5568ada10d673b8a1d203ce8b8c1dba7fbaf83/admin.scssc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/1935933f8fbe88236ef893016c1836bc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/27184889e78dc5a556f3c7567afbef63 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/37c7a190e68a7e26cf450e38ec190534 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/468917569b5c6af93b42fda1a68e426c +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/638d4b299480bfa854367ae027ff66d0 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/6609ee9da4eaea9b8d8137fbcfce6fdd +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/9d087e6fe6cf75adc1ebe34710cb71bc +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/ac64f2f5da10d3fe34beec68afda56d4 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/b53da076920d68305d6582c3af250465 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/d875d477ab20a2e08531d775a5fea6f2 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/e017dd8f0cd2f98c7864918d2ba783b3 +0 -0
- data/test/dummy/tmp/cache/assets/test/sprockets/f8160f91b680b2f94df78cefd5abc06e +0 -0
- data/test/factories/reports.rb +8 -0
- data/test/factories/users.rb +5 -0
- data/test/fixtures/reports.yml +15 -0
- data/test/functional/reports_controller_test.rb +34 -0
- data/test/generators/mint_report_generator_test.rb +14 -0
- data/test/integration/configuration_test.rb +29 -0
- data/test/integration/create_report_test.rb +20 -0
- data/test/integration/mint_report_generator.rb +10 -0
- data/test/mint_reporter_test.rb +7 -0
- data/test/test_helper.rb +45 -0
- data/test/tmp/app/models/reports/foo_report.rb +9 -0
- data/test/unit/report_test.rb +69 -0
- metadata +330 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure your secret_key_base is kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
Dummy::Application.config.secret_key_base = 'b56c6e55ad4c32dbdf494b194abbcc2f5ba3d943bb83ba721f5272b5c5f9e6f7b5206eb4a2a75df8c2a4e118629eafa3a16933adbc53c41da0ded3d320eb9282'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,59 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
get '/admin' => 'mint_admin/dashboard#show'
|
3
|
+
namespace :admin do
|
4
|
+
end
|
5
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
6
|
+
# See how all your routes lay out with "rake routes".
|
7
|
+
|
8
|
+
# You can have the root of your site routed with "root"
|
9
|
+
# root 'welcome#index'
|
10
|
+
|
11
|
+
# Example of regular route:
|
12
|
+
# get 'products/:id' => 'catalog#view'
|
13
|
+
|
14
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
15
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
16
|
+
|
17
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
18
|
+
# resources :products
|
19
|
+
|
20
|
+
# Example resource route with options:
|
21
|
+
# resources :products do
|
22
|
+
# member do
|
23
|
+
# get 'short'
|
24
|
+
# post 'toggle'
|
25
|
+
# end
|
26
|
+
#
|
27
|
+
# collection do
|
28
|
+
# get 'sold'
|
29
|
+
# end
|
30
|
+
# end
|
31
|
+
|
32
|
+
# Example resource route with sub-resources:
|
33
|
+
# resources :products do
|
34
|
+
# resources :comments, :sales
|
35
|
+
# resource :seller
|
36
|
+
# end
|
37
|
+
|
38
|
+
# Example resource route with more complex sub-resources:
|
39
|
+
# resources :products do
|
40
|
+
# resources :comments
|
41
|
+
# resources :sales do
|
42
|
+
# get 'recent', on: :collection
|
43
|
+
# end
|
44
|
+
# end
|
45
|
+
|
46
|
+
# Example resource route with concerns:
|
47
|
+
# concern :toggleable do
|
48
|
+
# post 'toggle'
|
49
|
+
# end
|
50
|
+
# resources :posts, concerns: :toggleable
|
51
|
+
# resources :photos, concerns: :toggleable
|
52
|
+
|
53
|
+
# Example resource route within a namespace:
|
54
|
+
# namespace :admin do
|
55
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
56
|
+
# # (app/controllers/admin/products_controller.rb)
|
57
|
+
# resources :products
|
58
|
+
# end
|
59
|
+
end
|
Binary file
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This migration comes from mint_reporter_engine (originally 20140703143528)
|
2
|
+
class CreateReports < ActiveRecord::Migration
|
3
|
+
def change
|
4
|
+
create_table :reports do |t|
|
5
|
+
t.string :type
|
6
|
+
t.datetime :from_date
|
7
|
+
t.datetime :to_date
|
8
|
+
t.string :csv_file_name
|
9
|
+
t.string :csv_content_type
|
10
|
+
t.integer :csv_file_size
|
11
|
+
t.datetime :csv_updated_at
|
12
|
+
t.string :state
|
13
|
+
|
14
|
+
t.timestamps
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
File without changes
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20140723162342) do
|
15
|
+
|
16
|
+
create_table "reports", force: true do |t|
|
17
|
+
t.string "type"
|
18
|
+
t.datetime "from_date"
|
19
|
+
t.datetime "to_date"
|
20
|
+
t.string "csv_file_name"
|
21
|
+
t.string "csv_content_type"
|
22
|
+
t.integer "csv_file_size"
|
23
|
+
t.datetime "csv_updated_at"
|
24
|
+
t.string "state"
|
25
|
+
t.datetime "created_at"
|
26
|
+
t.datetime "updated_at"
|
27
|
+
end
|
28
|
+
|
29
|
+
create_table "users", force: true do |t|
|
30
|
+
t.string "username"
|
31
|
+
t.datetime "created_at"
|
32
|
+
t.datetime "updated_at"
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
Binary file
|
@@ -0,0 +1,293 @@
|
|
1
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
Migrating to CreateReports (20140703143528)
|
5
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_type" varchar(255), "from_date" datetime, "to_date" datetime, "state" varchar(255), "timestamp_field" varchar(255), "parameters" text, "created_at" datetime, "updated_at" datetime) [0m
|
7
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140703143528"]]
|
8
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
9
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
10
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
11
|
+
Migrating to CreateFoos (20140715134002)
|
12
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
13
|
+
Migrating to CreateFoos (20140715134002)
|
14
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
15
|
+
Migrating to CreateFoos (20140715134002)
|
16
|
+
[1m[35m (0.0ms)[0m begin transaction
|
17
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attribute_one" varchar(255), "attribute_two" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
18
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140715134002"]]
|
19
|
+
[1m[36m (9.1ms)[0m [1mcommit transaction[0m
|
20
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
21
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attribute_one" varchar(255), "attribute_two" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
22
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_type" varchar(255), "from_date" datetime, "to_date" datetime, "state" varchar(255), "timestamp_field" varchar(255), "parameters" text, "created_at" datetime, "updated_at" datetime)
|
23
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
24
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
25
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
26
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140715134002')
|
27
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28
|
+
Migrating to CreateUsers (20140716113109)
|
29
|
+
[1m[35m (0.1ms)[0m begin transaction
|
30
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
31
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140716113109"]]
|
32
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
33
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
34
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
36
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attribute_one" varchar(255), "attribute_two" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
37
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_type" varchar(255), "from_date" datetime, "to_date" datetime, "state" varchar(255), "timestamp_field" varchar(255), "parameters" text, "created_at" datetime, "updated_at" datetime)
|
38
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
39
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
40
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
41
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
42
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140716113109')[0m
|
43
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140715134002')
|
44
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
45
|
+
Migrating to Role (20140716131043)
|
46
|
+
[1m[35m (0.0ms)[0m begin transaction
|
47
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140716131043"]]
|
48
|
+
[1m[35m (8.1ms)[0m commit transaction
|
49
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
50
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attribute_one" varchar(255), "attribute_two" varchar(255), "created_at" datetime, "updated_at" datetime)
|
51
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_type" varchar(255), "from_date" datetime, "to_date" datetime, "state" varchar(255), "timestamp_field" varchar(255), "parameters" text, "created_at" datetime, "updated_at" datetime) [0m
|
52
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime)
|
53
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
54
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
55
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
56
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140716131043')
|
57
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140715134002')[0m
|
58
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140716113109')
|
59
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
60
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
61
|
+
Migrating to Role (20140716131043)
|
62
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140716131043'
|
64
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
65
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
66
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
67
|
+
Migrating to CreateRoles (20140716132915)
|
68
|
+
[1m[35m (0.0ms)[0m begin transaction
|
69
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255)) [0m
|
70
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "role_assignments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "roleable_id" integer, "role_id" integer, "roleable_type" varchar(255))
|
71
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140716132915"]]
|
72
|
+
[1m[35m (8.7ms)[0m commit transaction
|
73
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
74
|
+
[1m[36m (9.3ms)[0m [1mCREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attribute_one" varchar(255), "attribute_two" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
75
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_type" varchar(255), "from_date" datetime, "to_date" datetime, "state" varchar(255), "timestamp_field" varchar(255), "parameters" text, "created_at" datetime, "updated_at" datetime)
|
76
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "role_assignments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "roleable_id" integer, "role_id" integer, "roleable_type" varchar(255)) [0m
|
77
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "roles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
|
78
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
79
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
80
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
81
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
82
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140716132915')[0m
|
83
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140715134002')
|
84
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140716113109')[0m
|
85
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
86
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
87
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
88
|
+
Migrating to AddDeviseToUsers (20140716141204)
|
89
|
+
[1m[35m (0.1ms)[0m begin transaction
|
90
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "users" ADD "email" varchar(255) DEFAULT '' NOT NULL[0m
|
91
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "users" ADD "encrypted_password" varchar(255) DEFAULT '' NOT NULL
|
92
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "users" ADD "reset_password_token" varchar(255)[0m
|
93
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "users" ADD "reset_password_sent_at" datetime
|
94
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "users" ADD "remember_created_at" datetime[0m
|
95
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "users" ADD "sign_in_count" integer DEFAULT 0 NOT NULL
|
96
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "users" ADD "current_sign_in_at" datetime[0m
|
97
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "users" ADD "last_sign_in_at" datetime
|
98
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "users" ADD "current_sign_in_ip" varchar(255)[0m
|
99
|
+
[1m[35m (0.1ms)[0m ALTER TABLE "users" ADD "last_sign_in_ip" varchar(255)
|
100
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")[0m
|
101
|
+
[1m[35m (0.1ms)[0m CREATE UNIQUE INDEX "index_users_on_reset_password_token" ON "users" ("reset_password_token")
|
102
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20140716141204"]]
|
103
|
+
[1m[35m (0.9ms)[0m commit transaction
|
104
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
105
|
+
[1m[36m (9.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
106
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
107
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
108
|
+
Migrating to CreateUsers (20140716113109)
|
109
|
+
[1m[35m (0.1ms)[0m begin transaction
|
110
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
111
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140716113109"]]
|
112
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
113
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
114
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
115
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
116
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
117
|
+
Migrating to CreateReports (20140703143528)
|
118
|
+
[1m[35m (0.1ms)[0m begin transaction
|
119
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_type" varchar(255), "from_date" datetime, "to_date" datetime, "state" varchar(255), "timestamp_field" varchar(255), "parameters" text, "created_at" datetime, "updated_at" datetime) [0m
|
120
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140703143528"]]
|
121
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
122
|
+
Migrating to CreateUsers (20140716113109)
|
123
|
+
[1m[35m (0.1ms)[0m begin transaction
|
124
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
125
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140716113109"]]
|
126
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
127
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
128
|
+
[1m[36m (9.4ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_type" varchar(255), "from_date" datetime, "to_date" datetime, "state" varchar(255), "timestamp_field" varchar(255), "parameters" text, "created_at" datetime, "updated_at" datetime) [0m
|
129
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime)
|
130
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
131
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
132
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
133
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140716113109')
|
134
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140703143528')[0m
|
135
|
+
[1m[36m (8.8ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_type" varchar(255), "from_date" datetime, "to_date" datetime, "state" varchar(255), "timestamp_field" varchar(255), "parameters" text, "created_at" datetime, "updated_at" datetime) [0m
|
136
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime)
|
137
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
138
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
139
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
140
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140716113109')
|
141
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
142
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
143
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
144
|
+
Migrating to CreateUsers (20140716113109)
|
145
|
+
[1m[35m (0.1ms)[0m begin transaction
|
146
|
+
[1m[36m (0.2ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
147
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140716113109"]]
|
148
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
149
|
+
Migrating to CreateReports (20140717131922)
|
150
|
+
[1m[35m (0.1ms)[0m begin transaction
|
151
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_type" varchar(255), "from_date" datetime, "to_date" datetime, "state" varchar(255), "timestamp_field" varchar(255), "parameters" text, "created_at" datetime, "updated_at" datetime) [0m
|
152
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140717131922"]]
|
153
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
154
|
+
Migrating to CreateFoos (20140717162652)
|
155
|
+
[1m[35m (0.1ms)[0m begin transaction
|
156
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
157
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140717162652"]]
|
158
|
+
[1m[36m (0.8ms)[0m [1mcommit transaction[0m
|
159
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
160
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
161
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_type" varchar(255), "from_date" datetime, "to_date" datetime, "state" varchar(255), "timestamp_field" varchar(255), "parameters" text, "created_at" datetime, "updated_at" datetime)
|
162
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
163
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
164
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
165
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
166
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140717162652')[0m
|
167
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140716113109')
|
168
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140717131922')[0m
|
169
|
+
[1m[36m (9.2ms)[0m [1mCREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
170
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_type" varchar(255), "from_date" datetime, "to_date" datetime, "state" varchar(255), "timestamp_field" varchar(255), "parameters" text, "created_at" datetime, "updated_at" datetime)
|
171
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
172
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
173
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
174
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
175
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140717162652')[0m
|
176
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140716113109')
|
177
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140717131922')[0m
|
178
|
+
[1m[36m (9.1ms)[0m [1mCREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
179
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_type" varchar(255), "from_date" datetime, "to_date" datetime, "state" varchar(255), "timestamp_field" varchar(255), "parameters" text, "created_at" datetime, "updated_at" datetime)
|
180
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
181
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
182
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
183
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
184
|
+
[1m[36m (1.0ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140717162652')[0m
|
185
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140716113109')
|
186
|
+
[1m[36m (8.4ms)[0m [1mCREATE TABLE "foos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
187
|
+
[1m[35m (1.1ms)[0m CREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_type" varchar(255), "from_date" datetime, "to_date" datetime, "state" varchar(255), "timestamp_field" varchar(255), "parameters" text, "created_at" datetime, "updated_at" datetime)
|
188
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
189
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
190
|
+
[1m[36m (0.9ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
191
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
192
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140717162652')[0m
|
193
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140716113109')
|
194
|
+
[1m[36m (9.3ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
195
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
196
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
197
|
+
Migrating to CreateUsers (20140716113109)
|
198
|
+
[1m[35m (0.1ms)[0m begin transaction
|
199
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
200
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140716113109"]]
|
201
|
+
[1m[36m (0.9ms)[0m [1mcommit transaction[0m
|
202
|
+
Migrating to CreateReports (20140718162451)
|
203
|
+
[1m[35m (0.1ms)[0m begin transaction
|
204
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "from_date" datetime, "to_date" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
205
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140718162451"]]
|
206
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
207
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
208
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "from_date" datetime, "to_date" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
209
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime)
|
210
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
211
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
212
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
213
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140718162451')
|
214
|
+
[1m[36m (1.2ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140716113109')[0m
|
215
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
216
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
217
|
+
[1m[36m (6.5ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "from_date" datetime, "to_date" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
218
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime)
|
219
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
220
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
221
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
222
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140718162451')
|
223
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140716113109')[0m
|
224
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
225
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
226
|
+
Migrating to CreateReports (20140718162451)
|
227
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
228
|
+
[1m[35m (0.4ms)[0m DROP TABLE "reports"
|
229
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140718162451'[0m
|
230
|
+
[1m[35m (8.4ms)[0m commit transaction
|
231
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
232
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
233
|
+
Migrating to CreateReports (20140723152437)
|
234
|
+
[1m[35m (0.1ms)[0m begin transaction
|
235
|
+
[1m[36m (0.4ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "from_date" datetime, "to_date" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
236
|
+
[1m[35m (7.8ms)[0m rollback transaction
|
237
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
238
|
+
Migrating to CreateReports (20140723152437)
|
239
|
+
[1m[35m (0.0ms)[0m begin transaction
|
240
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "from_date" datetime, "to_date" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
241
|
+
[1m[35m (8.5ms)[0m rollback transaction
|
242
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
243
|
+
Migrating to CreateReports (20140723153550)
|
244
|
+
[1m[35m (0.1ms)[0m begin transaction
|
245
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "from_date" datetime, "to_date" datetime, "csv_file_name" varchar(255), "csv_content_type" varchar(255), "csv_file_size" integer, "csv_updated_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
246
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140723153550"]]
|
247
|
+
[1m[36m (9.1ms)[0m [1mcommit transaction[0m
|
248
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
249
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "from_date" datetime, "to_date" datetime, "csv_file_name" varchar(255), "csv_content_type" varchar(255), "csv_file_size" integer, "csv_updated_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
250
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime)
|
251
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
252
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
253
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
254
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140723153550')
|
255
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140716113109')[0m
|
256
|
+
[1m[36m (9.1ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "from_date" datetime, "to_date" datetime, "csv_file_name" varchar(255), "csv_content_type" varchar(255), "csv_file_size" integer, "csv_updated_at" datetime, "created_at" datetime, "updated_at" datetime) [0m
|
257
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime)
|
258
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
259
|
+
[1m[35m (0.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
260
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
261
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140723153550')
|
262
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140716113109')[0m
|
263
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
264
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
265
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
266
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
267
|
+
Migrating to CreateReports (20140723153550)
|
268
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
269
|
+
[1m[35m (0.3ms)[0m DROP TABLE "reports"
|
270
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20140723153550'[0m
|
271
|
+
[1m[35m (8.7ms)[0m commit transaction
|
272
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
273
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
274
|
+
Migrating to CreateReports (20140723162342)
|
275
|
+
[1m[35m (0.1ms)[0m begin transaction
|
276
|
+
[1m[36m (0.3ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "from_date" datetime, "to_date" datetime, "csv_file_name" varchar(255), "csv_content_type" varchar(255), "csv_file_size" integer, "csv_updated_at" datetime, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
277
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140723162342"]]
|
278
|
+
[1m[36m (8.3ms)[0m [1mcommit transaction[0m
|
279
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
280
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "from_date" datetime, "to_date" datetime, "csv_file_name" varchar(255), "csv_content_type" varchar(255), "csv_file_size" integer, "csv_updated_at" datetime, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
281
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime)
|
282
|
+
[1m[36m (0.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
283
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
284
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
285
|
+
[1m[35m (0.9ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140723162342')
|
286
|
+
[1m[36m (0.9ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140716113109')[0m
|
287
|
+
[1m[36m (8.3ms)[0m [1mCREATE TABLE "reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "from_date" datetime, "to_date" datetime, "csv_file_name" varchar(255), "csv_content_type" varchar(255), "csv_file_size" integer, "csv_updated_at" datetime, "state" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
288
|
+
[1m[35m (1.2ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "username" varchar(255), "created_at" datetime, "updated_at" datetime)
|
289
|
+
[1m[36m (1.2ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
290
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
291
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
292
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140723162342')
|
293
|
+
[1m[36m (1.1ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140716113109')[0m
|