添加数据迁移文件

This commit is contained in:
z9hang 2014-07-25 10:09:38 +08:00
parent ca52de614d
commit 138d90a887
5 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1,5 @@
class AlterFirstPage < ActiveRecord::Migration
def change
change_column("first_pages","description",:text)
end
end

View File

@ -0,0 +1,9 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
one:
title: MyString
content: MyString
two:
title: MyString
content: MyString

47
test/fixtures/option_numbers.yml vendored Normal file
View File

@ -0,0 +1,47 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
one:
user_id: MyString
memo: 1
messages_for_issues: 1
issues_status: 1
replay_for_message: 1
replay_for_memo: 1
follow: 1
tread: 1
praise_by_one: 1
praise_by_two: 1
praise_by_three: 1
tread_by_one: 1
tread_by_two: 1
tread_by_three: 1
changeset: 1
document: 1
attachment: 1
issue_done_ratio: 1
post_issue: 1
score_type: 1
total_score: 1
two:
user_id: MyString
memo: 1
messages_for_issues: 1
issues_status: 1
replay_for_message: 1
replay_for_memo: 1
follow: 1
tread: 1
praise_by_one: 1
praise_by_two: 1
praise_by_three: 1
tread_by_one: 1
tread_by_two: 1
tread_by_three: 1
changeset: 1
document: 1
attachment: 1
issue_done_ratio: 1
post_issue: 1
score_type: 1
total_score: 1

View File

@ -0,0 +1,7 @@
require 'test_helper'
class ContestNotificationTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end

View File

@ -0,0 +1,7 @@
require 'test_helper'
class OptionNumberTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end