![](https://bigmachine.io/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6MTgwLCJwdXIiOiJibG9iX2lkIn19--754795cff9cd058ae94574435ca32ea5340466e8/eyJfcmFpbHMiOnsiZGF0YSI6e30sInB1ciI6InZhcmlhdGlvbiJ9fQ==--743878b0228ee81b4587d6ab790a4e67ea599217/deploy-first-push.jpg)
The First Deployment
Buy or Subscribe
You can access this course in just a minute, and support my efforts to rid the world of crappy online courses!
We'll need to add a migration so that Spina has its data, so let's do that quickly:
rails g migration AddSpinaNeedful
In the new migration file, you can add this:
class AddSpinaNeedful < ActiveRecord::Migration[7.1] def up #We need an account - this will also create a page for us Spina::Account.create!(name: "Railzzz", theme: "default") Spina::Navigation.create!( name: "mains", label: "Main menu" ) end def down Spina::Account.destroy_all Spina::Navigation.destroy_all page = Spina::Page.where(name: "homepage").destroy_all end end
When you add an account, Spina will create a homepage for you, which is nice.