Sha256: b3be6b3f3b8353be2f1f28e495c3cb2a7ec5d5a1bcc83dd69f90063d4c2fff02

Contents?: true

Size: 212 Bytes

Versions: 16

Compression:

Stored size: 212 Bytes

Contents

ActiveRecord::Base.connection.create_table(:posts, :force => true) do |t|
  t.string :title
  t.string :content
  t.string :state
end

class Post < ActiveRecord::Base
  state_machine initial: :draft do

  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
state_machines-activerecord-0.9.0 test/files/models/post.rb
state_machines-activerecord-0.8.0 test/files/models/post.rb
state_machines-activerecord-0.6.0 test/files/models/post.rb
state_machines-activerecord-0.5.2 test/files/models/post.rb
state_machines-activerecord-0.5.1 test/files/models/post.rb
state_machines-activerecord-0.5.0 test/files/models/post.rb
state_machines-activerecord-0.4.1 test/files/models/post.rb
state_machines-activerecord-0.4.0 test/files/models/post.rb
state_machines-activerecord-0.4.0.pre test/files/models/post.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/state_machines-activerecord-0.2.0/test/files/models/post.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/state_machines-activerecord-0.2.0/test/files/models/post.rb
state_machines-activerecord-0.3.0 test/files/models/post.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/state_machines-activerecord-0.2.0/test/files/models/post.rb
state_machines-activerecord-0.2.0 test/files/models/post.rb
state_machines-activerecord-0.1.0 test/files/models/post.rb
state_machines-activerecord-0.0.1 test/files/models/post.rb