Method: Cline::Command#init
- Defined in:
- lib/cline/command.rb
#init ⇒ Object
102 103 104 105 106 107 108 109 110 |
# File 'lib/cline/command.rb', line 102 def init Cline.establish_database_connection ActiveRecord::Base.connection.create_table(:notifications) do |t| t.text :message, null: false, default: '' t.integer :display_count, null: false, default: 0 t.datetime :notified_at, null: false end end |