diff --git a/db/migrate/20100101192755_modify_referenced_name_type.rb b/db/migrate/20100101192755_modify_referenced_name_type.rb new file mode 100644 index 00000000..eeb033a7 --- /dev/null +++ b/db/migrate/20100101192755_modify_referenced_name_type.rb @@ -0,0 +1,9 @@ +class ModifyReferencedNameType < ActiveRecord::Migration + def self.up + change_column :wiki_references, :referenced_name, :string, :limit => 255 + end + + def self.down + raise ActiveRecord::IrreversibleMigration + end +end diff --git a/db/production.db.sqlite3 b/db/production.db.sqlite3 index 4018a127..7b3b750e 100644 Binary files a/db/production.db.sqlite3 and b/db/production.db.sqlite3 differ diff --git a/db/schema.rb b/db/schema.rb index 4342bdfd..07b7e97f 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -9,7 +9,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20091021024908) do +ActiveRecord::Schema.define(:version => 20100101192755) do create_table "pages", :force => true do |t| t.datetime "created_at", :null => false @@ -21,11 +21,11 @@ ActiveRecord::Schema.define(:version => 20091021024908) do end create_table "revisions", :force => true do |t| - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - t.datetime "revised_at", :null => false - t.integer "page_id", :default => 0, :null => false - t.text "content", :limit => 16777215 + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + t.datetime "revised_at", :null => false + t.integer "page_id", :default => 0, :null => false + t.text "content", :limit => 16777215, :default => "", :null => false t.string "author", :limit => 60 t.string "ip", :limit => 60 end @@ -47,20 +47,20 @@ ActiveRecord::Schema.define(:version => 20091021024908) do end create_table "webs", :force => true do |t| - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - t.string "name", :limit => 60, :default => "", :null => false - t.string "address", :limit => 60, :default => "", :null => false + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + t.string "name", :limit => 60, :default => "", :null => false + t.string "address", :limit => 60, :default => "", :null => false t.string "password", :limit => 60 - t.text "additional_style" - t.integer "allow_uploads", :default => 1 - t.integer "published", :default => 0 - t.integer "count_pages", :default => 0 - t.string "markup", :limit => 50, :default => "markdownMML" - t.string "color", :limit => 6, :default => "008B26" - t.integer "max_upload_size", :default => 100 - t.integer "safe_mode", :default => 0 - t.integer "brackets_only", :default => 0 + t.text "additional_style", :limit => 255 + t.integer "allow_uploads", :default => 1 + t.integer "published", :default => 0 + t.integer "count_pages", :default => 0 + t.string "markup", :limit => 50, :default => "markdownMML" + t.string "color", :limit => 6, :default => "008B26" + t.integer "max_upload_size", :default => 100 + t.integer "safe_mode", :default => 0 + t.integer "brackets_only", :default => 0 end create_table "wiki_files", :force => true do |t|