mirror of
https://github.com/projekteuler/projekteuler.git
synced 2026-01-26 18:18:51 +01:00
Rename Problem to Translation
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class RenameProblemsTableToTranslations < ActiveRecord::Migration
|
||||
def change
|
||||
rename_table :problems, :translations
|
||||
end
|
||||
end
|
||||
@@ -11,9 +11,9 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20141130153941) do
|
||||
ActiveRecord::Schema.define(version: 20141213151812) do
|
||||
|
||||
create_table "problems", force: true do |t|
|
||||
create_table "translations", force: true do |t|
|
||||
t.string "title"
|
||||
t.text "content"
|
||||
t.datetime "created_at"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
# Mayor.create(name: 'Emanuel', city: cities.first)
|
||||
|
||||
for i in 1..103 do
|
||||
Problem.create(
|
||||
Translation.create(
|
||||
title: "Problem Nummer #{i}",
|
||||
content: "Das hier ist der Inhalt von <b>Problem #{i}</b>.<br />Hier ist die zweite Zeile."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user