Sha256: 5a709a9e620c83e83ec025770a9fa14076793b5f87e5a1cb824712809ab87f2e
Contents?: true
Size: 1.12 KB
Versions: 7
Compression:
Stored size: 1.12 KB
Contents
# -*- encoding : utf-8 -*- class AddMoreFollowingCards < Card::CoreMigration def up Card.create! name: '*follow', codename: 'follow', type_code: :setting Card.create! name: '*follow+*right+*default', type_code: :pointer Card.create! name: '*follow+*right+*input', type_code: :pointer, content: '[[radio]]' Card.create! name: '*follow+*right+*help', content: 'Get notified about changes', type_code: :phrase Card.create! name: '*followers', codename: 'followers' Card.create! name: '*follow fields', codename: 'follow_fields', type_code: :setting Card.create! name: '*follow fields+*right+*help', content: '' Card.create! name: '*follow fields+*right+*default', type_code: :pointer Card.create! name: '*all+*follow fields', content: '[[*include]]', type_code: :pointer # follow options Card.create! name: '*always', codename: 'always' Card.create! name: '*never', codename: 'never' # default follow rule Card.create! name: '*follow defaults', codename: 'follow_defaults', type_code: :pointer Card.create! name: '*all+*all+*follow', type_code: :pointer, content: '[[*never]]' end end
Version data entries
7 entries across 7 versions & 1 rubygems