添加数据迁移文件
This commit is contained in:
parent
ca52de614d
commit
138d90a887
|
@ -0,0 +1,5 @@
|
|||
class AlterFirstPage < ActiveRecord::Migration
|
||||
def change
|
||||
change_column("first_pages","description",:text)
|
||||
end
|
||||
end
|
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class ContestNotificationTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require 'test_helper'
|
||||
|
||||
class OptionNumberTest < ActiveSupport::TestCase
|
||||
# test "the truth" do
|
||||
# assert true
|
||||
# end
|
||||
end
|
Loading…
Reference in New Issue