From 5028fa40d501c1256cbbc38af083488d6d048884 Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Sun, 1 Sep 2013 22:08:28 +0300 Subject: [PATCH] fix "No integer type has byte size 50" mysql err --- db/migrate/20110917084645_create_domains.rb | 2 +- db/schema.rb | 43 ++++++++------------- 2 files changed, 17 insertions(+), 28 deletions(-) diff --git a/db/migrate/20110917084645_create_domains.rb b/db/migrate/20110917084645_create_domains.rb index 99590ad..14e9b4e 100644 --- a/db/migrate/20110917084645_create_domains.rb +++ b/db/migrate/20110917084645_create_domains.rb @@ -4,7 +4,7 @@ class CreateDomains < ActiveRecord::Migration t.references :user t.string :name, :limit => 255, :null => false t.string :master, :limit => 128, :default => nil - t.integer :last_check, :limit => 50, :default => nil + t.integer :last_check, :default => nil t.string :type, :limit => 6, :null => false t.integer :notified_serial, :default => nil t.string :account, :limit => 40, :default => nil diff --git a/db/schema.rb b/db/schema.rb index 0283495..3445f35 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -24,8 +24,8 @@ ActiveRecord::Schema.define(version: 20130824171517) do t.datetime "last_sign_in_at" t.string "current_sign_in_ip" t.string "last_sign_in_ip" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at" + t.datetime "updated_at" t.boolean "active", default: false end @@ -34,8 +34,8 @@ ActiveRecord::Schema.define(version: 20130824171517) do create_table "blacklisted_domains", force: true do |t| t.string "name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at" + t.datetime "updated_at" end create_table "domains", force: true do |t| @@ -46,8 +46,8 @@ ActiveRecord::Schema.define(version: 20130824171517) do t.string "type", limit: 6, null: false t.integer "notified_serial" t.string "account", limit: 40 - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at" + t.datetime "updated_at" t.string "name_reversed", null: false t.integer "creator_id" t.integer "updator_id" @@ -72,8 +72,8 @@ ActiveRecord::Schema.define(version: 20130824171517) do create_table "permissions", force: true do |t| t.integer "domain_id" t.integer "user_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at" + t.datetime "updated_at" t.integer "creator_id" t.integer "updator_id" end @@ -88,8 +88,8 @@ ActiveRecord::Schema.define(version: 20130824171517) do t.string "table" t.integer "month", limit: 2 t.integer "year", limit: 8 - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at" + t.datetime "updated_at" end add_index "rails_admin_histories", ["item", "table", "month", "year"], name: "index_rails_admin_histories", using: :btree @@ -103,8 +103,8 @@ ActiveRecord::Schema.define(version: 20130824171517) do t.integer "prio" t.integer "change_date" t.string "authentication_token" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at" + t.datetime "updated_at" t.integer "user_id" t.integer "creator_id" t.integer "updator_id" @@ -120,8 +120,8 @@ ActiveRecord::Schema.define(version: 20130824171517) do t.text "value" t.integer "thing_id" t.string "thing_type", limit: 30 - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at" + t.datetime "updated_at" end add_index "settings", ["thing_type", "thing_id", "var"], name: "index_settings_on_thing_type_and_thing_id_and_var", unique: true, using: :btree @@ -144,8 +144,8 @@ ActiveRecord::Schema.define(version: 20130824171517) do t.integer "failed_attempts", default: 0 t.string "unlock_token" t.datetime "locked_at" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false + t.datetime "created_at" + t.datetime "updated_at" t.integer "creator_id" t.integer "updator_id" t.boolean "active", default: true @@ -157,15 +157,4 @@ ActiveRecord::Schema.define(version: 20130824171517) do add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree add_index "users", ["unlock_token"], name: "index_users_on_unlock_token", unique: true, using: :btree - create_table "versions", force: true do |t| - t.string "item_type", null: false - t.integer "item_id", null: false - t.string "event", null: false - t.string "whodunnit" - t.text "object" - t.datetime "created_at" - end - - add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id", using: :btree - end